first of all we know that 1/5 are red/yellow ... so total of shops must be a multiple of 5 ......15's not high enough ... so 25 was a good start.
Then draw a venn diagram of 4 circles...red and green opposite each other just touching; white and yellow in between again just touching each other with red overlapping yellow, yellow over lapping green, green overlapping white and red overlapping white
Write 14 in the red circle , 5 in the intersecting bit of red and yellow, 9 in yellow...
9 yellow altogether, 5 of them are also red ...which leaves 4 which must be yellow and green ...write 4 in that intersection ..
then continue round till you fill in all intersections.
Luckily they did add to 25 ... or next we could have tried 30.
Hard to explain without the diagram in front of you i know ... but if it's still double dutch i could email you the diagram!