I am writing a code for the maximum loot in the knapsack, where a burglar has to maximize his loot, the maximum capacity of his knapsack is 9kg if there are 3 elements with