write the cation and anion formulas, including charge.
combine enough cations with enough anions to give a total charge of zero.
trick: swap charges as subscripts.
don't write charges when the ions are combined.
use the simplest (lowest) cation-to-anion ratio possible.
list cations first, anions last.