Dear Student,
X and Z both will have highest electron affinity as by gaining one more electron they will obtain half filled electronic configuration which is stable.
Y will have lowest electron affinity i.e. less than X and Z as no half filled or full filled stability is achieved here.
Regards,