look at electron configuration. these are called oxidation numbers. Cl, when is acting like anion, can only have -1, because if it gain this electron, it will have the electron configuration of Ar, which is the most stable electron configuration for Cl (in general, in each period the gas in VIII.A represents the most stable electron configuration). so, you should know halogen anions always has -1, I.A elements +1, II.A elements +2...so when you have AlCl3, you know this: Cl always -1, and there are three of them - so that's -3, molecule has to be neutral - so only one Al must have +3.