Same idea as the roommate splitter, sized for a one-off grocery run or trip.
Add each person and what they paid. See who owes whom to settle up fairly.