ANSWER
x = 4
Step-by-step explanation
If two powers that have the same base are equal, it means that their exponents are equal as well. In this case, the base is 3, so,

To solve for x, subtract x from both sides,

And then, subtract 1 from both sides of the equation,

Hence, the value of x is 4.