单项选择题

Tom, one of my students, had his term paper ______ as soon as he finished ______ it.

A) to be typed, to write
B) being typed, writing
C) typed, to write
D) typed, writing