Write the formulas for the following ionic compounds containing polyatomic ions:

a. Barium sulfite
b. Ammonium nitrite
c. Lithium sulfate
d. Sodium acetate
e. Calcium carbonate
f. Barium hydroxide
g. Calcium chlorate
h. Magnesium chlorite