Atomic mass=number of protons+number of neutronsAtomic mass of X = 6+6=12Atomic mass of Y =6+8=14Both X and Y have same atomic number but different atomic mass number so they are isotopes.