contestada

A grocer had 40 crates of tomatoes. Each crate contained 124 tomatoes. She threw away 24 rotten tomatoes and repack the rest into bag of 8 tomatoes each. How many bags of tomatoes were there?