Practise how to write chemical formula

Can you infer the formulae of ionic compounds, based on the charges of their constituent ions?