How to solve exponential equations with the same base