The shepherd who had three loaves should get one coin and the shepherd who had five loaves should get seven coins. If there were eight loaves and three men, each man ate two and two-thirds loaves. So the first shepherd gave the hunter one-third of a loaf and the second shepherd gave the hunter two and one-third loaves. The shepherd who gave one-third of a loaf should get one coin and the one who gave seven-thirds of a loaf should get seven coins.
Inless some one can tell me a way that 2 prisoners, at some point, don't out number the guards whether they are just dropping off and still in the boat or actually on land (because even if they are just dropping off and remain in the boat they are still on the other side of the river) I conclude this to be impossible. Please let me know an alternative if you figure one out because i'm stumped.
Fire up your brain and see if you can remember your multiplication tables and more! See! There are reasons to use math outside of school!