I\'m trying to solve an unbounded knapsack problem but I am stuck. I\'ve already solved the main part of the problem which is getting the max value, but I\'m also supposed to fi