Question: How do I print all solutions of equation and convert them to LaTeX?

I want to make some equation and convert to LaTeX to have some Exercises "Solve the equation" 
My code:
restart; A := [1, 2, 3/2, 4, 5/9]; B := [2, 5, -7, 1, 8]; C := [-1, -2, -3, -4, -5/3]; for i to nops(A) do 'solve*the*equation'*A[i]*x^2+B[i]*x+C[i] = 0 end do
How can I get code in LaTeX, it's mean, I get "Solve the equation $x^2+2x-1=0$" and get roots (if have)

Please Wait...