A. They all said that they has been working there for five years.
B. They all said that they had been working there for five years.
C. They all said that they had been working there for five years.
D. They all said they had been working there for five years.