Three men possess a pile of money, their shares being 1/2, 1/3, 1/6. Each man takes some money from the pile until nothing is left. The first man returns 1/2 of what he took, the second 1/3 and third 1/6. When the total so returned is divided equally among the men it is found that each then possesses what he is entitled to. How much money was in the original pile, and how much did each man take from the pile?
Note: This is a Diophantine problem so you may just give the smallest whole number solution.