$(25^x)-(6(5^x))+5=0$
$25= 5^2$ so $25^x= (5^2)^x= 5^{2x}= (5^x)^2$. Replace $5^x$ by y and solve the quadratic equation for y.