Answer:
F- and O2-
Mg2+ and S2
Explanation:
Ionic compounds compose of a metal and a nonmetal. They also compose of a cation(positively charged) and anion(negatively charged). Fluorine and Oxygen are both nonmetals and negatively charged. Barium and silver are both positively charged metals.