what tense is used for the capitalized verb?

sven HAD BEEN EXERCISING when they found him.
past progressive
present progressive
present perfect progressive
past perfect progressive

Past perfect progressive