We can do this problem using two ways....
Let me show you both methods.
Method 1: "Without using logs"
Now, since both sides of the equation have same base and they equal each other, then their exponent must be equal to each other. So, we equal their exponents.
After equaling the exponents, we get,

Now,
Method 2: "Using Logs"
So, either way we get x= 6