A perfectly competitive firm is maximizing profit if