The secretary worked late into the night,___a long speech for th

The secretary worked late into the night,___a long speech for the president.

A.to prepare

B.preparing

C.prepared

D.was preparing

正确答案是B