I was doing practice exams and I got stuck on this question?

Solve for x in the equation: 2a^x = b^(x+1)

I tried it over and over and still can't get x by itself, how do you do this question? It's on the no calculator section.

The answer's x = (log2 - log b) / (log b - log a)

If it helps.