Complex sentence: German was the language of instruction, but Kafka also spoke and wrote in Czech; he studied the latter at the gymnasium for eight years, achieving good grades.
Split into simpler sentences: German was the language of instruction, but Kafka also spoke and wrote in Czech. He studied the latter at the gymnasium for eight years, achieving good grades.