Ramesh made a mistake only in the constant term, meaning his coefficient of x is correct; therefore, the correct sum of the roots is the same as his calculated sum, which is 8 + 2 = 10. Mahesh made a mistake only in the coefficient of x, meaning his constant term is correct; therefore, the correct product of the roots is the same as his calculated product, which is (-9) multiplied by (-1), giving 9. We now know the correct sum of the roots is 10 and the correct product is 9. Setting up the quadratic equation with these values gives x^2 - 10x + 9 = 0. Factoring this equation yields (x - 9)(x - 1) = 0, resulting in the correct roots being 9 and 1.