A. Baking soda is sodium hydrogen carbonate which is prepared by Solvay process which is the reaction of sodium chloride,ammonia and carbon dioxide in water. The calcium carbonate is used in the reaction to get carbon dioxide gas.
CaCO3→CaO+CO22NH3+CO2+H2O→(NH4)2CO3+CO2+H2O→NH4HCO3NH4HCO3+NaCl→NaHCO3+NH4Cl
B. Washing soda is sodium carbonate which is prepared from the sodium chloride.
2NaCl+CaCO3→Na2CO3+CaCl2