Answer:
The answer is B, “I did learn so much in her class, and she inspired me to travel.”
This sentence is a compound sentence because if you remove the and, you have two complete sentences. When you have a compound sentence you always put a comma before the compound where in this case it is “and”.