Mary said :"he has liven in moscow aor ten yers "перевести в косвенную речь
Mary said that he had lived in Moscow for ten years.