rearranging we get
Now the laws of exponents tell us that so
(Note: It will almost always be easier to express in terms of the lowest power, in this case (x-2) for both exponents 2,5).
Now factorise and then take the log of both sides. Use your log laws to solve for x.