Finally solving pblm 4 in knapsack