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 released that turned damp red litmus paper blue. The same gas also formed dense white smoke with hydrogen chloride gas. Additional testing of a solution of $T$ using barium chloride solution gave a dense white precipitate that remained insoluble after dilute hydrochloric acid was added to the mixture. What is the identity of compound $T$?
- Aammonium carbonate
- Bammonium sulfate
- Csodium carbonate
- Dsodium sulfate