For the second before last f(f), you have to replace x with the function f(x).
For the last one you have to replace x with the function g(x)
5.1m questions
6.7m answers