The competitive firm maximize profit when it produces output up to the point where ?
A. price equals average variable cost
B. marginal revenue equals average revenue
C. marginal cost equals total revenue
D. marginal cost equals marginal revenue