How to solve this knapsack problem

How can i solve scuba dive question of SPOJ

1 Like

its bascially a 3d knapsack .