Explain why ionic compounds are formed from the left side of the periodic table reacts with nonmetalfrom the right side.