Y means families and are vertical (alkaline, alkaline earthmetals, halogens, transition metals, noble gases, etc) x means periods andare horizontal (1,2,3,4,5)
Atomic number refers to the number of protons within the nuclei of an element's atoms (and therefore the number of electrons) while mass number refers to the number of protons and neutrons within the nucleus.