The correct option is B Only NaCl
When HCl is passed through the mixture Cl− ion concentration increases.
Thus, ionic product [Na+][Cl−] becomes higher than solubility product.
So, NaCl will precipitate out.
Filtrate HCl gas passed−−−−−−−−−→Pure NaCl ↓ (common ion effect)
The hydration energies of group 2 ions are four or five times greater than group 1 ions.
Thus, calcium and magnesium chloride being more soluble than NaCl will remain in the solution.
Hence, option (a) is correct.