Luke said that Jesus’ grandfather was Heli. From then on there is a major difference in the genealogies of Matthew and Luke. A simple solution to this problem would be to say that Luke has presented the genealogy of Mary, not Joseph. The father of Mary was Heli. However, that does not explain where the names came from. The end of the genealogy of Matthew, chapter 1:15, is Joseph with his father Jacob. Most of the people mentioned in the genealogy of Matthew could be found in other biblical works. However, where Matthew got these last 9 generations of names was unclear. He must have had some source, since he was so meticulous following 1 Chronicles. Zerubbabel was Abiud’s father. Abiud was the father of Eliakim, while he was the father of Azor. He, in turn was the father of Zadok, whose son was Achim. His son was Eliud. Eliud’s son was Eleazar whose son was Matthan. Matthan was the father of Jacob, the father of Joseph. None of those names are here as Luke said that Heli was the son of Matthat (τοῦ Ματθὰτ), the son of Levi (τοῦ Λευεὶ), the son of Melchi (τοῦ Μελχεὶ), the son of Jannai (τοῦ Ἰανναὶ), the son of Joseph (τοῦ Ἰωσὴφ).
Up until this point, all the people mentioned in this genealogy could be found in other works of the Old Testament. However, other than Zerubbabel, the first governor of Judah under the Persian rule, all the other names cannot be found in the Hebrew writings. It is unclear where Matthew got these 9 generations of names, but he must have had some source, since he was so meticulous following 1 Chronicles. Zerubbabel (Ζοροβαβὲλ) was Abiud’s father. Abiud (Ἀβιούδ) was the father of Eliakim (Ἐλιακείμ,), while he was the father of Azor (Ἀζώρ). He, in turn was the father of Zadok (Σαδώκ), whose son was Achim (Ἀχείμ). His son was Eliud (Ἐλιούδ). Eliud’s son was Eleazar (Ἐλεάζαρ), whose son was Matthan (Μαθθάν). Matthan was the father of Jacob (Ἰακώβ). The Greek text used the term “begat” (ἐγέννησεν) to represent the relationships between these 9 men. However, it seems perfectly acceptable to simply call them the father instead of saying “fathered them.”