The secretary worked late into the night,_____a long speech for

The secretary worked late into the night,_____a long speech for the president.( )

A.to prepare

B.preparing

C.prepared

D.was preparing

正确答案是B