Hello how are you

Salt A commonly used in bakery products on heating gets converted into another salt B which itself is used for removal of hardness of water and a gas C is evolved. The gas C when passed through lime water, turns it milky. Identify A, B and C. Write balanced chemical equations for the reactions involved.