Complex sentence: Four of them were later allocated to Mossel Bay and the Cape Midland for similar duties, and remained there until they were withdrawn by 1957, after more than forty years in service.
Split into simpler sentences: Four of them were later allocated to Mossel Bay and the Cape Midland for similar duties. They remained there until they were withdrawn by 1957 after more than forty years in service.