This is actually a quadratic equation in .

Recalling the laws of indices we can say that

To illustrate the point let - thus we have

Solve the quadratic using your favourite method (this one does factorise) to get two values of u.

Once you have the values of u you put and where root_1 and root_2 are your values of u. It should then be straightforward to find x