Complex sentence: He was educated at home before attending Selkirk grammar school, then, at the age of fourteen, he was apprenticed to a surgeon named Thomas Anderson in Selkirk.
Split into simpler sentences: He was educated at home before attending Selkirk grammar school. At the age of fourteen, he was apprenticed to Thomas Anderson, a surgeon in Selkirk.