A green grocer had some apples. The apples were packed in 16 cartons. Each carton contained 8 apples. How many apples did the green grocer have?