Complex sentence: When her husband landed a lecturership in Baghdad, Wyndham accompanied him and remained in Iraq for two years.
Split into simpler sentences: When her husband landed a lecturership in Baghdad, Wyndham accompanied him. They remained in Iraq for two years.