Compound A on strong heating in a boiling tube gives off reddish brown fumes and a yellow residue. When the aqueous solution of A is treated with a few drops of sodium hydroxide solution, a white precipitate appeared. Identify the cation and anion present in the compound A.