All the tasks_____ahead of time ,they decided to have a dinner p

All the tasks_____ahead of time ,they decided to have a dinner party to celebrate.

A.have been finished

B.having been finished

正确答案是B