You can put this solution on YOUR website! 5^(x+1) + 5^(2-x) = 126
----
Check for an integer solution first.
5 to the power of a positive integer is a multiply of 5.
--> For the sum to be 126, one of the terms has to be 1.
5^0 = 1
Either x+1 = 0
--> x = -1
That doesn't work.
----
Or 2-x = x
--> x = 2
That works.
5^3 + 5^0 = 126
=====================
If it had been 5^(x+1) + 5^(2-x) = 127, there would be no algebraic solution, only numerical methods.