Input (grade 12): The pair only received two years' education in arithmetic and geometry before Dalton was forced to retire owing to a stroke.
Output (grade 12): They only received two years of education in arithmetic and geometry before Dalton was forced to retire because of a stroke.