Writing Formulas with Polyatomic Ions