What is the formula for? Do you just take the charges so they can equal out to each oter?

Silver (I)acetate
silver (I) bromide

Yes.

Silver acetate is AgC2H3O2.
Silver bromide is AgBr.

The formula for a compound is a way to represent the elements present in the compound and the ratio in which they combine. In the case of ionic compounds like silver(I) acetate and silver(I) bromide, the formula is determined based on the charges of the ions involved.

To determine the formula, you need to know the charges of the ions involved. In this case, the silver ion has a charge of +1 (written as Ag+) and the acetate ion has a charge of -1 (written as CH3COO-). Similarly, the silver ion in silver bromide has a charge of +1 and the bromide ion has a charge of -1 (written as Br-).

To create a neutral compound, the total positive charge of the cations (silver ions) should balance out the total negative charge of the anions (acetate or bromide ions). This is done by taking the absolute values of the charges and swapping them as the subscripts for the other ion.

For silver(I) acetate, the +1 charge of the silver ion balances out the -1 charge of the acetate ion. Therefore, the formula would be AgC2H3O2.

For silver(I) bromide, the +1 charge of the silver ion balances out the -1 charge of the bromide ion. Therefore, the formula would be AgBr.

So, in short, the formula is determined by making sure the charges of the ions add up to zero (for neutral compounds) or to a whole number ratio for other cases.