Final answer:
To find (fog)(-5), substitute -5 into g(x) to get -5, and then substitute -5 into f(x) to get -23.
Step-by-step explanation:
To find (fog)(-5), we need to substitute -5 into the function g(x) and then substitute the result into the function f(x).
First, substitute -5 into g(x): g(-5) = -5.
Then, substitute -5 into f(x): f(-5) = 6(-5) + 7 = -30 + 7 = -23.
Therefore, (fog)(-5) = -23.