Answer:
B.) MgCl2
Step-by-step explanation:
The element with atomic number 17 has 7 valence electrons. It needs 1 electron to attain a stable electronic configuration. So, two atoms of this element will form ionic bonds with one atom of the element with two valence electrons. The compound that fits the description perfectly is MgCl2