Complex sentence: They were almost trapped by the German invasion of Greece, but escaped to Egypt where they parted, and she worked for the British government running a library in Cairo.
Split into simpler sentences: They were almost trapped by the German invasion of Greece, but escaped to Egypt where they parted. She then worked for the British government, running a library in Cairo.