write the formulas for the following compounds

Sodium chlorate i put NaCl
Lead (II) phosphate i put Pb2P
For Magnesium hydrogen carbonate i had no clue!
then it stats state the number of electrons lost or gained in forming each of these Ions. I didn't understand the question but they were
Mg2+
Ca2+
Br- and Ag+
then it says name each ions in the question and tell whether they are anions or cataions
for Mg2+ i put cation
for Ca2+ i put cation
for Br- i put anion
and for Ag+ i put cation

thanks in advance

most of them are true... except for question with polyatomic ion

Sodium chlorate = NaClO3 (chlorate is a polyatomic ion)
Lead(II) phosphate = Pb3(PO4)2
Magnesium hydrogencarbonate =Mg(HCO3)2
*** you need to review your polyatomic ion)

sodium chlorate: NaClO3

lead II phosphate: Pb3(PO4)2

Magnesium => Mg
Hydrogen carbonate=> HCO3

since in group 2 (Mg)

then Mg(HCO3)2

ok but what about the rest of the questions?

then it stats state the number of electrons lost or gained in forming each of these Ions. I didn't understand the question but they were

Mg2+ so since it's 2+ then it has lost 2 electrons
Ca2+ 2 as well
Br-gained 1 e- and Ag+ since it's + then it obviously lost 1 e-
then it says name each ions in the question and tell whether they are anions or cataions
for Mg2+ i put cation
for Ca2+ i put cation
for Br- i put anion
and for Ag+ i put cation
all these are okay

To write the chemical formulas for the compounds and determine the number of electrons gained or lost, we need to consider the valence electrons of each element.

1. Sodium chlorate: Sodium is a group 1 element, typically forming a +1 cation (Na+). Chlorine is a group 17 element, typically forming a -1 anion (Cl-). The formula for sodium chlorate is NaClO3.

2. Lead (II) phosphate: Lead is a transition metal that can have different charges. In this case, it forms a +2 cation (Pb2+). Phosphate is a polyatomic anion with a -3 charge (PO43-). The formula for lead (II) phosphate is Pb3(PO4)2.

3. Magnesium hydrogen carbonate: Magnesium is an alkaline earth metal, typically forming a +2 cation (Mg2+). Hydrogen carbonate is a polyatomic anion with a -1 charge (HCO3-). To determine the formula, we need to balance the charges. Since magnesium forms a +2 cation, and hydrogen carbonate forms a -1 anion, we need two hydrogen carbonate ions to balance the charge of one magnesium ion. Therefore, the formula for magnesium hydrogen carbonate is Mg(HCO3)2.

Now, let's determine the number of electrons gained or lost for each ion:

- Mg2+: Magnesium normally has 12 electrons (2, 8, 2 configuration). When it forms a +2 cation, it loses 2 electrons to achieve a stable 10-electron configuration.

- Ca2+: Calcium normally has 20 electrons (2, 8, 8, 2 configuration). When it forms a +2 cation, it loses 2 electrons to achieve a stable 18-electron configuration.

- Br-: Bromine normally has 35 electrons (2, 8, 18, 7 configuration). When it forms a -1 anion, it gains 1 electron to achieve a stable 36-electron configuration.

- Ag+: Silver normally has 47 electrons (2, 8, 18, 18, 1 configuration). When it forms a +1 cation, it loses 1 electron to achieve a stable 46-electron configuration.

For the final part, let's name each ion and determine if they are anions or cations:

- Mg2+: Magnesium ion; cation.
- Ca2+: Calcium ion; cation.
- Br-: Bromide ion; anion.
- Ag+: Silver ion; cation.

Remember, cations are positively charged ions formed by losing electrons, while anions are negatively charged ions formed by gaining electrons.