Final answer:
The function C(h) gives the total cost of dog sitting for h hours. It is $2 per hour for the first three hours, and a flat rate of $12 thereafter, regardless of the number of hours.
Step-by-step explanation:
The question is asking to define the function C(h), which calculates the total cost of dog sitting given the number of hours h. For the first three hours, the cost is $2 per hour; however, after three hours, the total cost is a flat rate of $12, no matter how long the dog stays. Therefore, the function C(h) is piecewise and can be defined as follows:
- If h ≤ 3, then C(h) = 2h
- If h > 3, then C(h) = 12
The marginal cost does not apply to this problem since it is about a flat rate after a certain number of hours, rather than a cost that increases with each additional hour.