The correct option is B X>Y
The general electronic configuration of Alkali metal is ns1 so if we remove first electron(first ionization energy) it will become octet configuration,so to remove next electron it requires more energy(second ionization energy) ,whereas the general electronic configuration of alkali earth metals is ns2 so the electrons can be lost easily.,so the second ionization energy of alkali metal is more than the alkali earth metal,so the order of ionization energy is X>Y.
Hence option A is correct.