Oh, I see what you’re doing. You’re trying to say Mary taught him.
Unlikely. The education of a Jewish boy was the responsibility of the father, who was supposed to start teaching a boy the Torah as soon as the child could talk. If the father died, then a close male relative, such as an uncle, assumed the responsibility. Mary might have kibitzed but did not teach.