Optimal Quantity and Social Cost