H represents the number of hours:
10h + 40
(40 represents, well $40)
In 4 seconds, number of beats = 28
In 1 sec., it is = 28/4 = 7
Now, In 30 seconds, it would be: 30 * 7 = 210
In short, Your Answer would be: 210 beats
Hope this helps!
The answer is 12.69, you just need to put all the groceries together!!