The total cost will be ...
... cost = 3×$32 + 1×$53 + h×$5
In dollars, that simplifies to
... cost = 5h + 149
9.5m questions
12.2m answers