7. Given the following total cost schedule:
Q 0 1 2 3 4
TC 1 12 14 15 20
Derive the average-cost and marginal-cost schedules and show the profit-maximizing level of output (profit=TR-TC).