A solid compound 'X' on heating gives $CO_2$ gas and a residue. The residue mixed with water forms 'Y'. On passing an excess of $CO_2$ through 'Y' in water, a clear solution, 'Z' is obtained. On boiling 'Z', compound 'X' is reformed. The compound 'X' is :-