The confirmatory test involves diazotization, followed by coupling with phenol to yield a red azo dye. Hence, the reagents used are:
A = NaNO2 + HCl, 0–5°C and B = phenol
The product (P) formed in the following reaction is: