Write formulas for the following compounds containing complex anions.

rubidium hyponitrite
magnesium bromite

Use the table I gave you below for the formula of the anion, add it to the metal. For example,

the second one is Mg(BrO2)2. It takes two BrO2 anions with a valence of -1 to equal Mg with a valence of 2.

To write formulas for compounds containing complex anions, we need to identify the charges of the cation and anion and balance them to achieve a neutral compound.

1. Rubidium hyponitrite:
The rubidium ion has a charge of +1 (Rb+). The hyponitrite ion (N2O2) is a polyatomic ion with a charge of -1. To balance the charges, we use the crisscross method.

The formula for rubidium hyponitrite would be RbN2O2.

2. Magnesium bromite:
The magnesium ion has a charge of +2 (Mg2+). The bromite ion (BrO2-) is a polyatomic ion with a charge of -1. Again, we use the crisscross method to balance the charges.

The formula for magnesium bromite would be Mg(BrO2)2.

Note: It's important to recognize and know the charges of common ions to correctly write the formula for compounds containing complex anions.