how to determine a quadratic equation given the roots or the sum and product of the roots?