- #1
mishima
- 576
- 43
Hi, its been a while since I have thought about this type of math, and I can't really remember how to do this or what its even called. I have two lists of numbers:
A: 8, 8, 9, 10, 7, 8
B: 6, 5, 4, 3, 3, 3
I want to find all the different ways I can add elements from A with elements of B. For instance, just adding them vertically as they are here I could get one combination as:
C: 14, 13, 13, 13, 10, 11
When an element from a list is used, its gone. For example, if I added 10 from A and 6 from B, I can't use 6 again (or vice versa). Can anyone nudge me in the right direction?
A: 8, 8, 9, 10, 7, 8
B: 6, 5, 4, 3, 3, 3
I want to find all the different ways I can add elements from A with elements of B. For instance, just adding them vertically as they are here I could get one combination as:
C: 14, 13, 13, 13, 10, 11
When an element from a list is used, its gone. For example, if I added 10 from A and 6 from B, I can't use 6 again (or vice versa). Can anyone nudge me in the right direction?