1 b. magnesium and chlorine

magnesium is Mg+2

chlorine is Cl-1

to make a neutral compound the formula would be MgCl2