if a perfectly competitive firm wishes to maximize profits and is producing where price exceeds both marginal cost and average variable cost, then the firm is