given that f(x) = 3x + 7 and g(x) = (-x)cubed + 1, find (fog)(-2)

(fog)(-2)

= f(g(-2))

g(-2) = (-(-2))^3 + 1 = 10
f(10) = 3(10)+7 = 37

so (fog)(-2) = 37