Number Theory (Linear Diophantine Equation)
Three men came across a purse and picked it up. The first man, after looking at its contents, said: "If I get that purse, I'll have twice as much as your combined money", the second, after having done the same, said: "If I keep the purse, I'll have thrice as much as both of you have". The third, said: "If I'll get that purse, I'll have five times as much as your combined money. How much money was in the purse? How much money does each have?