I want to divide a list into sub-lists. The mass addition of each sublist has to be 90.
As you can see in the image below, I have 3 different items (30,45,90) in it. The sub-lists have to be 30,30,30 or 45,45 or 60,30.
I could not figure it out. Any input/help is appreciated.