What I would do is take the cases with the red shirts and the cases with the green shirts seperately. For the red shirts, you have 5*8*7 possibilities of outfits and for the green shirts, you have 5*8*8 possibilities of outfits. The total is 280+320=600 total outfits.
So your answer is 600 total outfits.
Hope this helps you understand!