Dear Student,
Sodium chloride is used for manufacture of sodium hydroxide which is called chloralkali process.
In this process, chlorine and hydrogen gas are formed as byproducts along with sodium hydroxide.
Chlorine gas gives bleaching power when reacts with lime water and used as bleaching agent in chemical industries.
2NaCl(aq)+2H2O(l)→ 2NaOH(aq)+Cl2(g)+H2(g) Ca(OH)2+Cl2⟶ CaOCl2+H2O
Therefore, the gas M is chlorine (Cl2).
Compound N is calcium oxychloride (CaOCl2) which is commonly known as bleaching powder and used to make drinking water free from germs.
Regards