A teacher bought 12 packets of crayons. Seven of the packets had 9 crayons. How many crayons did the teacher buy in all?