An analytical chemist is investigating a sample of an unknown inorganic salt. They perform two chemical tests to identify the constituent ions:
To the first sample, they add dilute nitric acid followed by silver nitrate solution. A cream precipitate forms. Identify the chemical formula of the anion.
To the second sample, they add sodium hydroxide solution dropwise. A blue precipitate forms. Identify the chemical formula of the cation.