I really need help with this, I've watched 2 videos on it and I still don't understand please help I have to turn it in

we have the following:
[tex]\begin{gathered} f(x)=3^x+2 \\ g(x)=-f(\frac{1}{3}x-3)+2 \end{gathered}[/tex]therefore:
[tex]f(x)=3^{(\frac{1}{3}x-3)}+2[/tex]