They said, "They were taking exercise".

They said, "They were taking exercise".

Explanation

They said, "They were taking exercise".

were (Past Continue) will change into had been (past perfect tense). this is direct to indirect rule