To predict the formula, you need to determine the charges of the ions and balance them to achieve a neutral compound.