Answer:
Magnesium and Chlorine
Potassium and Sulfur
Step-by-step explanation:
Ionic compounds form between a metal and a non-metal
Magnesium & Chlorine and Potassium & Sulfur will form ionic compounds due to Magnesium and Potassium being metals while Chlorine and Sulfur are non metals.
Elements also have to have a large difference in electronegativity as one atom has to lose its electron to the other atom.