Step 1: Understanding the Question:
We start from acetamide, \( \mathrm{CH_3CONH_2} \). It is first heated with \( \mathrm{P_2O_5} \) to give compound (A). Then (A) is reduced with \( \mathrm{Sn/HCl} \) (4 atoms of nascent hydrogen) to give compound (B). We must name (A) and (B).
Step 2: Key Idea for the first reaction:
\( \mathrm{P_2O_5} \) is a strong dehydrating agent. When a primary amide is heated with it, one molecule of water is removed from the \( \mathrm{-CONH_2} \) group and a nitrile \( \mathrm{-C\equiv N} \) is formed.
\[ \mathrm{CH_3CONH_2} \xrightarrow[\Delta]{\mathrm{P_2O_5}} \mathrm{CH_3C\equiv N} + \mathrm{H_2O} \]
So (A) is \( \mathrm{CH_3CN} \), called methyl cyanide, acetonitrile or ethanenitrile.
Step 3: Key Idea for the second reaction:
A nitrile is reduced to a primary amine by nascent hydrogen from \( \mathrm{Sn/HCl} \). The \( \mathrm{C\equiv N} \) group takes 4 hydrogen atoms and becomes \( \mathrm{CH_2-NH_2} \). The carbon count does not change.
\[ \mathrm{CH_3C\equiv N} \xrightarrow[\mathrm{Sn/HCl}]{4\,[\mathrm{H}]} \mathrm{CH_3CH_2NH_2} \]
So (B) is \( \mathrm{CH_3CH_2NH_2} \), called ethylamine (I.U.P.A.C. name ethanamine). This is a primary aliphatic amine.
Final Answer:
(A) is methyl cyanide and (B) is ethylamine.\[ \boxed{\mathrm{(A) = CH_3CN;\ (B) = CH_3CH_2NH_2}} \]