Answer: Magnesium and Bromine/MgBr2 = Ionic compounds
Explanation: When atoms form together they can form between Ionic Compounds and molecules; this could depend on if they're joined by Covalent bonds as well because when atoms form with Covalent bonds, it forms Molecules.