Question: how ted met the mother?
Answer: In the episode "Challenge Accepted", it is revealed that Ted meets the mother of his children the day of Barney's wedding. In the last episode of season 7, "The Magician's Code" it is shown that Barney will marry Robin, and Ted will meet the Mother "the day of" their wedding.