Answer:
Observe that (fog)(x) is equivalent to f(g(x)) which is to say intuitively the output of the function g(x) is fed as an input into the function f(x).
So in this case the general output of g(x) is x^2-6 for every input x. Thus fed as an input of f(x) in the form f(x^2-6) becomes 3(x^2-6)+1=3x^2-17.
Explanation: