Write balanced equations for the following:
(i) NaCl is heated with sulphuric acid in the presence of MnO2.
(ii) Chlorine gas is passed into a solution of NaI in water.