- h is the number of hours John works
- f(h) is the function for the amount of money John earns
with this information provided all we have to do now is substitute

so, first row:
we repeat the same process with the rest of the values

second row:

repeat that once more

third and final row:

and we're done, hope this helps. <3