Introduction - If you have any usage issues, please Google them yourself
Rewritten into a greedy algorithm for object-oriented (knapsack problem), a certain capacity, for each object according to benefit/weight sorting, which in this case only three objects