Mr.hamrick bought 6 bags of candy each bag contained 8 candies. She put a equal number of candies in each of the 9 gift boxes. How many candies were left over?