Mr. Garza bought paper cups for his food truck. He bought 5 cartons of blue cups and 4 cartons of green cups. He ordered a total of 1,008 cups. How many cups are in each carton?