Lets say I have 12 weights.

2 of the yellow 5lbs

2 of the green 7lbs

2 of the red 13lbs

2 of the blue 19lbs

2 of the black 23lbs

2 of the orange 30lbs

I need a formula to figure out all the possible combinations and the values for those weights to be configured.

GOOD LUCK