f(40) = 20
f(40) means the value of f(x) when x = 40. The step increment in the graph is 10, so we look at the forth mark in the right of the x axis. The y value of this point is 20, because coincides with the second mark in the vertical axis.
Then, f(40) = 20