Complex sentence: In 1919 he was elected Rector of the University of St Andrews for the next three years, and served as Chancellor of the University of Edinburgh from 1930 to 1937.
Split into simpler sentences: In 1919 he was elected Rector of the University of St Andrews for a three year term. He later served as Chancellor of the University of Edinburgh from 1930 to 1937.