(a)
Ratio of number of atoms for water is H : O = 2 :1
(b) Ammonium sulphate - (NH4)2SO4 Magnesium chloride - MgCl2