If f (p) = 3p – 1 andg(n)=n? + 2,what is (f.g)(x)?

This is a composition function, so:
[tex]\begin{gathered} f(p)=3p-1 \\ g(n)=n^2+2 \\ (f\circ g)(x)=f(g(x))=3\cdot g(x)-1 \\ (f\circ g)(x)=3(x^2+2)-1=3x^2+3\cdot2-1 \\ (f\circ g)(x)=3x^2+5 \end{gathered}[/tex]