For a class task, Kavya draws a bar graph showing the number of electrons in each energy level (K, L and M) for three neutral atoms. She calls them X, Y and Z so that her friends can guess them.

From the graph: X has 2, 8 and 2 electrons in its K, L and M shells; Y has 2 and 6 electrons in its K and L shells; Z has 2, 8 and 5 electrons in its K, L and M shells.
(i) What is the atomic number of Y? Name the element.
(ii) Which of the three atoms has the most valence electrons?
(iii) Find the valency of X and of Z. For each, say whether the atom tends to lose or gain electrons.
