Fill in the blank.
When a metal and a nonmetal react, the result is a(n) ______ compound. Ratio of cat ions and anion depends on the ionic charge of each. All ionic compounds come together in the simplest ratio to make a _______ formula unit and the ________ is always written first in the formula.