Miranda had been mountain biking on the trail when she saw the bear and its cubs.

A. past progressive
B. present progressive
C. present perfect progressive
D. past perfect progressive

B. present progressive