Step-by-step explanation:
2 hours -----> $12.50
1 hour -----> $12.50/2 = $6.25
Now, putting it in the form of y = kx,
For 1 hour -----> $6.25 = K×1 (General equation)
Similarly,
For 2 hours -----> $12.50 = K×2
For 5 hours -----> $31.25 = K×5
Hope it helps.