Simplifying and solving exponential equations