New. So not sure if this is the right place. Hopefully someone can help.

The problem is -I have a list of figures of amounts. I receive a number of cheques (checks if from the US) which are the the total of some of the figures (whole amount) and no figure is used twice. How can I make it easy to figure out which amounts add up to which. Example the list is $5 (lets call it x1),$18(x2),$7(x3),$6(x4), $9(x5), $10(x6),$2(x7) - now I receive a cheque for $14 so that it is for x1,x3 and x7. The next is for $24 that is for x2 and x4. The last one is for x5 and x6.

So can any work out an equation to do this or a way to easily do this for me? as the number of figures can be in there 100's.