Blue color X changes to white color Y on heating and when we moisten Y, Blue color X reappers. This is because has some water of crystallisation.
X has some water of crystallisation
This is because X has some water of crystallaisation. And When X is heated, the water molecules disappear and X looses its blue color and become Y (anhydrous).
When Y is mostened i.e.reacted with water, Y takes some water molecule as water of crystallisation and the blue color reappers.