A perfectly competitive firm sells its good for $24. if marginal cost is three times the quantity produced, how much does the firm produce? why?