If I have an array and I want to find which combination of number pairs gives me the lowest total how would I do that?
For example if my array has the values 2,3,5 and 7.
2*3= 6, 5*7= 35. 35+6 = 41
2*5= 10, 3*7= 21. 21+10 = 31
2*7= 14, 3*5= 15. 15+14 = 29
So for these numbers the best combination of numbers is 2*7 and 3*5
Does that make sense?