Tell them apart
The flags of Egypt 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 Egypt, Yemen, Iraq and Syria: each flag once, in random order. Place it on the map, then name it.