Find gof and fog when f: R → R and g: R → R is defined by f(x) = x^2 + 8 and g(x) = 3x^3 + 1