Shweta and Sandhya solved a quadratic equation. In solving it, Shweta made a mistake in the constant term and got the roots as 6 and 2, while Sandhya made a mistake in the coefficient of x only and obtained the roots as -7 and -1. The correct root of the equation are.
When there is no mistake in a and b, the sum of roots must be correct. When there is no mistake in a and c, product of the roots must be correct.
Therefore sum of roots = 6+2 = 8 and product of roots -7*-1 = 7
So the correct equation is x^2-8x+7
(x-7) (x-1)
The roots are 7, 1