To figure this out, utilize the context clues given.
If you're meant to first find g of x (x currently not being a number), the equation should stay the same. Thus, you need to find f of g, or the equation that you were given.
If f(x) were to be 8/x, then x^2 + 2 would be inputted into the denominator, as dictated above.