A and B are two salts. A with dil. HCl and B with conc. H2SO4react to give reddish-brown vapours, hence A and B respectively are: