Question: how many protons and electrons does the most stable ion for calcium have?
Answer: If an ion has a 2+ charge then it must have lost electrons to form the cation. If the ion has 18 electrons and the atom lost 2 to form the ion, then the neutral atom contained 20 electrons. Since it was neutral, it must also have had 20 protons. Therefore the element is calcium.