Complex sentence: Thulemeyer was the godson of Friedrich Wilhelm I of Prussia and he was educated at public expense, probably on the "Joachimsthalsches Gymnasium".
Split into simpler sentences: Thulemeyer was the godson of Friedrich Wilhelm I of Prussia. The young Thulemeyer was educated at public expense, most probably on the royal "Joachimsthalsches Gymnasium".