How do you write formulas for molecular equations?