Question 756552
Just form the composition and simplify.

{{{f(x)=x^2+1}}}
{{{f(g(x))=(3x-1)^2+1}}}
{{{f(g(x))=9x^2-6x+1+1}}}
{{{f(g(x))=9x^2-6x+2}}}