Work out the starting amount from shared costs, put one person in charge, and pay back whatever is left at the end.