The Optimal Allocation Of Resources