I have a combinatorics problem that I can\'t solve.
Given a set of numbers and a target number, return a weight for each number, so that the average of the set is closest