The answer to this question would be: D. Magnesium
The number of energy levels of aluminum is 3 which was why it was put on the 3rd row. The valence of calcium is 2 which is why it was put in the 2nd column. If you look at the periodic table, the answer should be clear that it was magnesium.