Answer
$x = 2$
Work Step by Step
Rewrite the terms so they share a common base (note that $9=3^2$):
$3^{x} = 3^{2}$
If two numbers having the same base are equal, that means that their exponents are also the same, so set the exponents equal to one another to solve for $x$:
$x = 2$