Since boiling is expensive on a large scale a calculated amount of sodium carbonate decahydrate Na2CO310H2O precipitates insoluble Ca2aq and Mg2aq ions as carbonates to remove both temporary and permanent hardness of water This a double decomposition reaction where two soluble salts form an insoluble and soluble salt ie