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)
1.6m questions
2.0m answers