Concept:The Hofmann bromamide degradation converts an amide (RCONH2) to a primary amine with one less carbon atom (RNH2) using Br2 and KOH.Explanation:The final compound R has formula C6H7N.Its degree of unsaturation is 4, indicating a benzene ring.Thus, R must be aniline (C6H5NH2).Since R is formed from Q by Hofmann degradation, Q must be benzamide (C6H5CONH2).Benzamide is prepared by treating benzoic acid (C6H5COOH, compound P) with hot aqueous ammonia.Thus, P = benzoic acid, Q = benzamide, R = aniline.