Complex sentence: Few slaves had formal education and those who did were artisans, and those educated or trained in religion were by fortune of their owner's interests.
Split into simpler sentences: Few slaves had formal education and those who did were artisans. Those educated or given religious training were only by the fortune of their owner's interests.