Sodium hydroxide solution can react with magnesium chloride to generate magnesium hydroxide precipitate and sodium chloride, and sodium carbonate solution can react with calcium chloride to generate calcium carbonate precipitate and sodium chloride, so calcium chloride can be removed by adding excessive sodium carbonate solution, and the chemical formula of sodium carbonate is Na2CO3 ... After adding excessive sodium hydroxide solution and excessive sodium carbonate solution in turn, magnesium hydroxide and calcium carbonate can be removed by filtration, and the obtained sodium chloride solution contains sodium hydroxide and sodium carbonate. When an appropriate amount of dilute hydrochloric acid is added, dilute hydrochloric acid can react with sodium hydroxide to generate sodium chloride and water, and can react with sodium carbonate to generate sodium chloride, water and carbon dioxide, so as to remove sodium hydroxide and sodium carbonate, and finally obtain a sodium chloride solution, and then evaporate and crystallize the filtrate to obtain relatively pure sodium chloride.
So, the answer is: filtering; Stir; Na2CO3 diluted hydrochloric acid.