Consider the exponential function given by the equation:
$$y = 3^x$$
What is the value of $x$ for which $y$ is equal to 81?