Concept:Alkyl halides react with KCN to form nitriles, which on reduction give primary amines.Explanation:CH3I reacts with KCN via nucleophilic substitution to form methyl cyanide (ethanenitrile), A.So, A is CH3CN.Then A is reduced using sodium metal in ethanol (C2H5OH).This reduction converts the −CN group into −CH2NH2.Therefore, B is ethylamine, CH3CH2NH2.