Identify A and B in the following reaction.


 
Complete conversion can be performed as