Solve exponential equations by rewriting the base