Here X,Y,Z are respectively
CH3COOCH3, NaOH + CaO, NH2NH2
C6H5NH2, Red P / HI, LiAlH4
CH3COONa, sodalime, Kolbe's electrolysis
C6H5NH2, CH3COCl, H2SO4
Step Y is decarboxylation; step z is by Kolbe's electrolysis