Two travelers cross the desert. One carries 5 loaves.
The other has 3 loaves. Halfway there they are joined by a third traveler, who does not bring food.
The three decide to share the 8 loaves equally. When saying goodbye, the newcomer leaves them 8 coins as thanks.
The first proposes to distribute them according to the loaves that each one carried: 5 coins for him and 3 for the other. Is that distribution correct?
If not, how should the 8 coins actually be divided?