Benji bought 5 bags of balls. Each bag contained 40 balls. He packed the balls into packets of 8 balls each. How many packets did he get?