It might C becuase in a story they would like to elacate excitement and sprinted sounds better then ran.
The answer is is patient cz root is in the middle of the word
hello there! the short answer is yes. “when” is a relative pronoun, and the example you gave is a complex sentence. hope that helped ☺️.