Socially optimal model 1 - Finding the Optimal Allocation