Algebra Examples

Find f(g(x)) f(x)=3x+1g(x)=x^2-6
I am unable to solve this problem.