See the attachments.
This question was a question on this year's AMC. I was just wondering how to do it.
It should be done without a calculator![]()
You're going to have to "build up" your answer, recursively. These functions are defined recursively. I would try this: construct a table with columns x, f(x), g(x), and h(x). Then just start marching across the rows until you have finished out the x = 4 row. The last number in the h column will be your answer.