Discussion About Colorful Knapsack

This is Discussion thread about Colorful Knapsack

Having wa with the first case :
Here is my code

Problem Code
I am getting 75 points in this , not sure what the mistake is :frowning:
Can anyone help me ?
Thanks in advance!