The goal of this function is to help find a subset of people whose debt is exactly equal to the credit of another person. It "matches" a subset of people whose debt is equal to the credit of another.

I couldn't think of a better name - if you find one that is better, go ahead.
Thanks for the code review & for rebasing this code!