Well, I'm sure a "formula" is out of the question...a computer "search"
would be fastest...but then you may get 2 or 3 combos that work for
the same amount.
I say phone Mary Jane from the payer's accounts payable dept. and
ask her which amounts she intends to pay, and to please include the
invoice numbers next time