Because the first wage is determined, here's the start of our sentence:
4(30)
Now, we know that any number above thirty turns into $5 an hour, so:
4(30) + 5(h - 30)
h represents hours, but because he only gets 5 an hour for his work above 30 hours, we must subtract five from the sentence.
So the function:
f(h) = 4(30) + 5(h - 30)
Or, simpler:
f(h) = 5h - 30