1.4511 g sample of a yellow, anhydrous ionic compound A, was roasted in the air stream, leaving a black residue. All gaseous products of the roasting were absorbed in the KOH pellets, increasing their mass by 1.4960 g. The black residue was dissolved in an acid yielding a green solution that was electrolysed on a platinum electrode, increasing its mass by almost exactly half a gram. Product of the electrolysis was removed from the electrode by a stream of the carbon monoxide, yielding exactly 1.4511 g of a volatile, highly toxic liquid B.
1. Using information from the question give formulas of both compounds A and B. If you are not sure about the exact formula, give the most probable one.
2. Give names of both compounds (don't worry if you don't know them outright – you can use any sources you want).