2nd method is much simpler. I always rewrite log (base b) of some number as ln (some number) / ln (base b). Expression becomes ln(x)/ln(5) = ln(25)/ln(x). Cross multiplying, simplifying ln(25) as 2 ln(5), and taking the square root gives the answer as x = 5^(+/- sqrt(2)).