In a perfectly competitive market, each firm produces at a quantity where price is set
1) equal to marginal cost, in the short run.
2) equal to marginal cost, both in the short run and in the long run.
3) equal to average cost, in the long run.
4) equal to average cost, both in the short run and in the long run.