When I was afraid is the subordinate clause because "that is the time" can stand by itself and can be recognized as a independent clause. I believe that the subordinate clause would fall under the adjective clause family, mainly because "when I was afraid" directly refers to "time", which is a noun.
On the one hand, a <u>gerund</u> is a verb that acts as a noun, know for the -ing form. On the other hand, an <u>infinitive</u> is the basic form of a verb, that usually follows "to" or another verb form. The revised sentence, including both of these, is:
"To give is one of the best things people can do. Volunteering their time shows what caring people they are."
Different is the word in the following sentence that gives a context clue for the word diversity.
Answer:
The school had given special permission to Mr. Montero to go on the field trip
with his class because it was poetry month.