8. The correct answer is D. infinitive.
Infinitives are relatively easy to spot - usually, their form is TO + verb. As you can see here, you have the phrase 'to rest and educate himself,' which is an infinitive phrase, because 'to rest' and 'to educate' are both infinitives.
9. The correct answer is C. gerund.
Gerunds have a specific form - they are usually verbs + -ing (e.g. writing). They are always used as nouns in a sentence, meaning they can function as subjects, objects, etc. in a sentence. Here, the gerund phrase is used as the subject.
10. The correct answer is B. participial.
Although participles and gerunds look the same (both have the following form: verb + -ing), the main difference between them is their function. Gerunds function as nouns in the sentence; on the other hand, participles are often used as either adjectives or adverbs.