(a) X is carbon dioxide gas (CO2).
Y is calcium carbonate (CaCO3).
Z is calcium hydrogen carbonate (calcium bicarbonate) [Ca(HCO3)2].
(b)
(i) When a piece of limestone or calcium carbonate is treated with dilute hydrochloric acid, carbon dioxide gas (CO2 , here given as X) is produced.
CaCO3(s) + 2HCl(aq) → 2NaCl(aq) + H2O(l) + CO2(g)
(ii) When carbon dioxide (X), liberated in the reaction is passed through lime water, the lime water turns milky or a white precipitate of calcium carbonate (CaCO3 , Here given as Y) is formed.
Ca(OH)2(aq) + CO2(g) → CaCO3(s) + H2O(l)
(iii) When excess of carbon dioxide is passed through lime water, a solution of calcium hydrogen carbonate [Z, Ca(HCO3)2] is formed.
CaCO3(s) + H2O(l) + CO2(g) → Ca(HCO3)2(aq)