The end product Z of the reaction, is:EthylamineHNO2−−−−→XPCl5−−−→YKCN−−−→Z