Go through the following question and provide the answer:
 
A compound ‘X’ is obtained when a basic salt ‘Y’ is crystallised to form a hydrated salt. ‘X’ is used in softening hard water. On heating, ‘X’ loses water of crystallisation to form ‘Z

i.Write the common names of ‘X’, ‘Y’, and ‘Z’
ii. Write the chemical formula of ‘X’, ‘Y’, and ‘Z’
 
i. Common names of 'X', 'Y' and 'Z' is.
 
ii. Chemical formula of 'X', 'Y' and 'Z' is.