John buys 2 packs of index cards for all his students. He has 6 classes and 30 students in each class. How many packs did he buy?