Version of Knapsack problem for LeighMarie's edX