Go through the following question and provide the answer:
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 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.
Answer variants:
Chlorine gas
Calcium sulphate
Calcium hydroxide
Carbon dioxide gas
Calcium carbonate
Bleaching powder
Calcium bicarbonate
'X':
'Y':
'G':
'Z':
'Y':
'G':
'Z':