- \( A \) = Benzamide (\( C_6H_5CONH_2 \))
- \( B \) = Aniline (\( C_6H_5NH_2 \))
Step 1: Conversion of Benzoic Acid to Benzamide
When benzoic acid (\( C_6H_5COOH \)) is heated with ammonia, it undergoes amide formation, forming benzamide (\( C_6H_5CONH_2 \)).
\[
\text{C}_6\text{H}_5\text{COOH} + NH_3 \xrightarrow{\Delta} \text{C}_6\text{H}_5CONH_2
\]
Step 2: Hoffmann Bromamide Degradation
When benzamide (\( C_6H_5CONH_2 \)) reacts with Br\(_2\)/NaOH, the carbonyl (-CO) group is removed, leading to the formation of aniline (\( C_6H_5NH_2 \)).
\[
\text{C}_6\text{H}_5CONH_2 + Br_2 + NaOH \rightarrow \text{C}_6\text{H}_5NH_2 + Na_2CO_3
\]