This question is about the composition of functions.
Remember that a composition of two functions refers to one function inside of another, so the expression

means that function g(x) is inside f(x), so let's get that expression first

Notice that we replaced g(x) inside the variable of f(x), that's the composition.
Additionally, the expression

means that we need to substitute -5 for x, let's do it

Therefore, the right answer is D. 27.