Composition of Functions 5

This worksheet shows two function machines, g(x) and f(x). The graph of their composition, h(x) = f(g(x)) is shown on the right. Try inputting different numbers into the machines. What happens in the graph? Can you find a formula for f(x)? What about h(x)?