Vertical compression implies that you multiply the function by a scalar or constant.
---> (1/3)*f(x)
Translating up means you are adding to the y-value or shifting the graph up.
----> f(x) + 2
Put it together and you get:
[tex]g(x) = \frac{1}{3}f(x) + 2 [/tex]
Now replace f(x) with 6x
[tex]g(x) = \frac{1}{3} (6x) + 2 = 2x + 2[/tex]