The periodic table is arranged such that elements in the same group have the same number of valence electrons. The group number generally indicates the number of valence electrons for elements in groups 1, 2, and 13-18. Element X belongs to the 2nd group and 3rd period.
Elements in the 2nd group are called alkaline earth metals and have 2 valence electrons. The valency of an element is determined by the number of electrons it can gain, lose, or share to achieve a stable electron configuration (usually a noble gas configuration).
Since element X has 2 valence electrons, it tends to lose these 2 electrons to achieve a stable configuration.
Therefore, its valency is 2. So, the correct answer is (2) 2.
Final Answer: The final answer is $\boxed{2}$