Since the exponential function and the logarithmic function are inverses of each other, their composites are the identity function. That is,
Thus, if their bases are the same, exponential and logarithmic functions "undo" each other. You can use this inverse property of exponents and logarithms to simplify expression like yours.
Using , we get
I hope I've cleared up any confusion you may have had.