Consider the exponential function defined by the equation:
$$f(x) = 3^x + 2.$$
What is the value of $$x$$ for which the function $$f(x)$$ equals 11?