I am trying to solve this equation

f(x)=3x+1, g(x)=x^2-2x-6

I am trying to find H of g(3)