In the following series of reactions identify the major products A and B respectively.
The major product (P) in the following reaction is :
The least acidic compound, among the following is