Three travelers are taking a journey. After walking for some time they decide to stop and have a
meal. Traveler A has five loaves of bread, traveler B has three loaves of bread, and traveler C has
no loaves of bread, but says that if the other two will share their bread with him he will pay for
whatever he eats. The travelers then consume all the bread, each having an equal portion. After
the meal traveler C brings out eight coins of equal value. The question is: how should the eight
coins be distributed amongst travelers A and B to fairly compensate them for the bread they
shared?