I don't know of the formal way of solving such problems, but I have worked with them in the past. Since the numbers are not large, I would suggest just brute force every possible combination and give each one a score…
I don't know of the formal way of solving such problems, but I have worked with them in the past. Since the numbers are not large, I would suggest just brute force every possible combination and give each one a score…