Given that has equal roots

and and are positive,

find the ratio

and solve the equation.

(I was able to deduce the relation , but how is the ratio further on calculated?

How are the value of and deduced in such a way that substituting their values would solve the equation? )

(The answers provided are and .)