You would use the density difference to separate the sand, evaporate the water out (the water vapor will cool back to water if collected). Then use a magnet to get the iron fillings out of the salt.
8.5m questions
11.2m answers