Answer: alkaline earth metals (group-IIA)
Explanation:
The element which donates the electron is known as electropositive element and forms a positively charged ion called as cation. The element which accepts the electrons is known as electronegative element and forms a negatively charged ion called as anion.
Alkaline earth metals donate 2 valence electrons to acquire noble gas configuration.
For example: Berrylium is the first alkaline earth metal with atomic number of 4 and thus has 4 electrons
Electronic configuration of berrylium:
[tex][Be]:4:1s^22s^2[/tex]
Berrylium atom will loose two electrons to gain noble gas configuration and form berrylium cation with +2 charge.
[tex][Be^{2+}]:2:1s^2[/tex]
Thus Elements donate 2 electron to produce a cation with a 2+ charge are alkaline earth metals.