Requirement:
To distribute a list of sorted numbers in evenly sized group based on the sum which will be fixed.
For example

4 11 16 18 49 74 90 100 101 --> Sorted list

Sum = 100 --Fixed
Groups will be
Set1 = 103
Set2 =101
Set3= 100
Set4= 90,4 -- as 90+4 <100 and 90+4+11 >100
Set5=74,11-- as 74+11 <100 and 74+11+16>100
Set6=49,18,16-- as 49+18+16 <100

We're not going to do it for you. Show us what you think, and what you have tried. Then we'll help. Also, your problem is poorly worded, and difficult to understand. A cleared example would help.

To me it looks like something that a simplex algorithm should be solving if I'm understanding it correctly.