A student heats a colourless salt solution with dilute sulphuric acid. The gas that comes off has a choking smell, turns a paper dipped in acidified potassium dichromate from orange to green, and turns lime water milky. A fresh portion of the solution is treated with barium chloride, and a white precipitate forms. Which pair of statements is correct for the anion?