Identify A and B in the following reaction

Identify A and B in the following reaction.