Why does price equal marginal-revenue for the purely competitive firm? What is the relationship to the demand curve for the firm?