A store has caps on display. Five of the caps are red. There are 4 more blue caps than green caps. There are 3 fewer yellow caps than green caps. If there are 24 caps in all, how many caps are there in each color?