Three people (Alan, Ben and Chris), collectively own a certain number of gold coins. Respectively they own a half, one third and one sixth of the total number.

All the coins were piled on a table and each of them grabbed a part of the pile so that none were left.

After a short time:

Alan returned half of the coins that he had taken.

Ben returned a third of the coins that he had taken.

Chris returned one sixth of the coins that she had taken.

Finally each of the three got an equal share of the amount that had been returned to the table.

Surprisingly, each person had exactly the number of coins that really belonged to them.

What is the smallest number of coins that this strange transaction will work for?

How much did each person grab from the pile?