(f ° g)(18) is another way of writing f(g(18)) which is telling you to evaluate function g at an x value of 18, then take that answer and plug it in for x in the function. Like this:
g(18) = 18 - 9 so
g(18) = 9. Now take that 9 and plug it into the f function in place of x: