you might have to work out the empirical formula of an ionic compound from a diagram of the compound. if its a dots and cross diagram, count up how many atoms there are of each element. if you're given a 3D diagram of the ionic lattice, use it to work out what ions are in the ionic compound. then, you need to balance the charges of the ions so that the overall charge on the compound is zero.