Problem Statement:
There are three different types of cabinets with width (40 cm, 60 cm, 80cm). Then we have LED light strips of dimensions - 40 cm, 60 cm, 80 cm, a starter kit of 40 cm and a special 'power socket' of 20 cm.
These cabinets can be arranged together/adjacent to each other in any way (40,40,40 / 40,60,40 /40,80,80 etc.) -- lets call it an adjacent run.
The LED light strip can be added/attached incrementally (max. 9 pieces) but the first component always needs to be a Starter kit(dimension 40 cm). That means in an adjacent run you always need to add the starter kit of 40 cm (only) and then you can choose to add either a 40cm light strip or 60 cm light strip or 80 cm light strip or a socket strip (max 2 in an adjacent run). The only restriction is the total width of the adjacent run.
E.g., an adjacent run of 40, 40, 40 (total width 120 cm) can have light strips arranged in the following fashion:
- 40 cm starter kit + power socket
- 40 cm starter kit + power socket + 40 cm light strip
- 40 cm starter kit + 2(40 cm light strip)
- 40 cm starter kit + 80 cm light strip
- 40 cm starter kit + 60 cm light strip
and so on and so forth
I need help with a formula that can give me all the combinations for a given adjacent run .
I ask the smart folks around the globe to have a look at my problem and come back with feedback. Kindly excuse me if my text is confusing - I can rephrase it, should it be confusing.