Consider the function defined by the equation $$f(x) = 3x + 2$$. This function maps an input value, $$x$$, to an output value, $$f(x)$$. What is the output of the function when the input is 4?