The blackness of silver coin is due to the formation of silver sulphide in its surface due to its exposure to air. On boiling, the aluminium foil reacts with the layer of silver sulphide and displaces silver from silver sulphide to from aluminium sulphide and silver. This makes the coin shiny.
3๐ด๐2๐ + 2๐ด๐ โ 6๐ด๐ + ๐ด๐2๐3