X is the nucleus and the Y is the electrons.
The nucleus has protons and neutrons.
Hope this helped :)
Have a great day
9.5m questions
12.2m answers