Complex sentence: Andrew received his primary education first at home, and then at several area boarding schools, and finally (after his mother's death in 1832) Gorham Academy in nearby Gorham.
Split into simpler sentences: Andrew received his primary education first at home, and then at several area boarding schools. After his mother's death in 1832, he attended Gorham Academy in nearby Gorham.