In one of the industrial processes used for the manufacture of sodium hydroxide, a gas X is formed as by-product

In one of the industrial processes used for the manufacture of sodium hydroxide, a gas X is formed as by-product.
The gas X reacts with lime water to give a compound Y which is used as a bleaching agent in chemical industry. Identify X and Y by giving the chemical equation of the reactions involved.

X = Chlorine (Cl 2)
Y = Bleaching powder (CaOCl2)
Equations involved are: