A metal carbonate X on reacting with an acid gives a gas which when passed through a solution Y gives the carbonate back. On the other hand, a gas G that is obtained at the anode during electrolysis of brine is passed on dry Y, it gives a compound Z, used for disinfecting drinking water. Identity X, Y, G and Z.
Carbon dioxide turns lime water milky when passed through it because of formation of calcium carbonate.
When carbon dioxide; so formed; is passed through lime water, lime water turns milky because of the formation of calcium carbonate.
Ca(OH)2+CO2→CaCO3+H2O
On the electrolysis of brine, chlorine gas is deposited over anode which gives calcium oxychloride (Bleaching powder) on passing over slaked lime. The bleaching powder is used in disinfecting the drinking water.
Ca(OH)2+Cl2⟶CaOCl2+H2O
Bleaching powder is used for disinfecting drinking water.
Therefore, metal carbonate ′X′ is calcium carbonate.