Answer:
A metal and a nonmetal
Step-by-step explanation:
Picture NaCl, the most famous example of an ionic compound. Two ions, Na+ (sodium) and Cl- (chlorine) are joined by an ionic bond.
Sodium, the metal, gives up an electron to chlorine.
Chlorine, the nonmetal, accepts an electron from sodium.
That way both have 8 electrons in their outer shell! This is the way ionic bonds function.