x (Z = 36): 1s22s22p63s23p63d104s24p6, that is [Ar]3d104s24p6 (krypton).
y (Z = 58): [Xe]4f15d16s2 (cerium).
(i) x has its last electron in a 4p orbital and a full valence shell 4s24p6: it is in group 18, period 4, p-block (a noble gas). y has its highest shell n=6 and its differentiating electron in a 4f orbital: it is in period 6, f-block, the first of the lanthanoids (shown in the group 3 position, in the separate panel at the bottom).
(ii) NCERT calls the s-block and the p-block elements (groups 1, 2 and 13 to 18) the representative or main group elements. x, a p-block element, is therefore a representative element (noble gases are often discussed separately because of their very low reactivity). y is an inner-transition (f-block) element, so it is not a representative element.