The electronic configurations of beryllium and magnesium are:
When beryllium and magnesium react, they lose electrons to form positive ions with a 2+2+2+ charge.
Suggest an explanation, in terms of their electronic configurations, why magnesium is more reactive than beryllium.