The products A and B in the following reaction sequence are: