What elements have two valence electron?

The alkaline earth metals in column 2 and the transition metals in column 12 of a wide-form periodic table.