Original: Joachim and Anne are believed to have given Mary to the service of the Second Temple when the girl was three years old.
Simplified: When Mary was about three years old, Joachim and Anna brought her up in The Second Temple.