In the Maths test two students, while solving a quadratic equation, committed the following mistakes:
(i) One of them made a mistake in the constant term and got the roots as 5 and 9.
(ii) Another one committed an error in the coefficient of x and got the roots as 12 and 4.
But, in the meantime, they realised that they are wrong and they managed to get it right jointly. Find the correct quadratic equation.