<prompt> Human: Myself and two friends recently went on holiday and have found that weve spent disproportionately for it. One of us booked the flights, the other a car, etc. So now were back and we have a total for how much each of us has spent:Me: 934.24 Friend 1: 1096.34Friend 2: 404.13Initially I thought we could just add it all up and divide by 3 and then see who paid moreless and sort the difference, but Im not sure who pays who now. Its instantly clear that friend 2 pays me and friend 1, but whats the best way to calculate how much? Any help would be greatly appreciated!Edit: seems it was a lot more simple than I thought! Thanks to all of you for the help.  <response>: So you want to split it 3 ways so its even? Youre on the right track, find the average cost, 811.57, thus friend 2 paid too little, he owes you 122.67 934.24-811.57 and he owes Friend 1 284.77 1096.34-811.57. Then youll all be even, having each spent exactly 811.57 