How do you calculate the farm's profit-maximizing output and
how much profit will the farmer earn based on average total cost, price, and marginal cost?