Tell them apart
The flags of Iraq and Yemen are both pan-Arab horizontal tricolours with a white middle band over black, so they’re easy to mix up at a glance. This is what gives each one away:
Drill Iraq, Yemen, Egypt and Syria: each flag once, in random order. Place it on the map, then name it.