(a) A was C6H5I
\(C_6H_5I \xrightarrow[boil]{aq.NaOH}No\,reaction\)
\(\xrightarrow[AgNO_3]{dil.HNO_3}NO\,reaction\)
\(C_6H_5CH_2I \xrightarrow[boil]{aq.NaOH}C_6H_5CH_2OH+NaI\)
\(\xrightarrow[AgNO_3]{dil.HNO_3} \underset{(yellow\,ppt)}{AgI\,\downarrow}\)
So B is C6H5CH2I, hence A is C6H5I