Q: Has your daughter come back from Australia?
A: Yes. She ____ there for three years.
A. has stayed
D. had stayed
I think the answer is D because "staying there" happened in past before "coming back" (past of the past).
But the "standard" given answer is C. Why?