We will use magnet to separate iron pins from sand. The property of iron to get attracted towards a magnet is used to separate it from sand.
A magnet is moved on the surface of the mixture. Iron pins are attracted by the magnet. They cling to the poles of the magnet and get separated. This process is repeated till all the iron pins are separated.