Input (grade 13): The territories, which were originally contained within the British Mandate of Palestine, were captured and occupied by Jordan and by Egypt in the late 1940s, and captured and occupied by Israel in the 1967 Six-Day War.
Output (grade 5): They were captured and occupied by Jordan and by Egypt in the late 1940s.