单项选择题

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