what is the tense of the underlined verb?

we (had) just (finished) our dinner when the snow began to fall.


A.future perfect

B.past perfect

C.past

D.present perfect


the answer plz