A magnesium (Mg) atom gives one electron to two atoms of another element, then it takes on a 2+ charge. The two atoms of the other element each form a 1− charge. As a result, the magnesium ion and the two ions of the other element attract and form an ionic bond.
Given the scenario, which of the following elements could behave as described and have two of its atoms receive magnesium's electrons?