Optimal Allocation And Public Goods