Compound $T$ is a white, crystalline solid. When a sample of $T$ was combined with aqueous sodium hydroxide and heated, a pungent-smelling gas was given off which turned damp red litmus paper blue. The same gas formed dense white smoke with hydrogen chloride gas. When a solution of $T$ was tested further with barium chloride solution, a dense white precipitate was formed, and this did not dissolve after dilute hydrochloric acid was added to the mixture. What is the identity of compound $T$?
- Aammonium carbonate
- Bammonium sulfate
- Csodium carbonate
- Dsodium sulfate