how to get the roots of the sum and product of quadratic equation?