Complex sentence: In 1828 he went to the University of Glasgow to study chemistry under Professor Thomas Thomson, then studied at Trinity College, Dublin, where he gained distinction in classics as well as in science.
Split into simpler sentences: In 1828 he went to the University of Glasgow to study chemistry under Professor Thomas Thomson. He then moved to Trinity College, Dublin, where he gained distinction in classics as well as in science.