The genealogies in both Luke and Matthew reckon Jesus's lineage through Joseph, not Mary.
Another one of those controversial things. Most of the people I know say one is Joseph, and one is Mary. ( Obviously there are some differences )
Matt 1:1; The record of the genealogy of Jesus the Messiah, the son of David, the son of Abraham:
Matt 1:2;
Abraham was the father of Isaac, Isaac the father of Jacob, and Jacob the father of Judah and his brothers.
Matt 1:3; Judah was the father of Perez and Zerah by Tamar, Perez was the father of Hezron, and Hezron the father of Ram.
Matt 1:4; Ram was the father of Amminadab, Amminadab the father of Nahshon, and Nahshon the father of Salmon.
Matt 1:5; Salmon was the father of Boaz by Rahab, Boaz was the father of Obed by Ruth, and Obed the father of Jesse.
Matt 1:6;
Jesse was the father of David the king. David was the father of Solomon by Bathsheba who had been the wife of Uriah.
Matt 1:7; Solomon was the father of Rehoboam, Rehoboam the father of Abijah, and Abijah the father of Asa.
Matt 1:8; Asa was the father of Jehoshaphat, Jehoshaphat the father of Joram, and Joram the father of Uzziah.
Matt 1:9; Uzziah was the father of Jotham, Jotham the father of Ahaz, and Ahaz the father of Hezekiah.
Matt 1:10; Hezekiah was the father of Manasseh, Manasseh the father of Amon, and Amon the father of Josiah.
Matt 1:11; Josiah became the father of Jeconiah and his brothers, at the time of the deportation to Babylon.
Matt 1:12; After the deportation to Babylon: Jeconiah became the father of Shealtiel, and Shealtiel the father of Zerubbabel.
Matt 1:13; Zerubbabel was the father of Abihud, Abihud the father of Eliakim, and Eliakim the father of Azor.
Matt 1:14; Azor was the father of Zadok, Zadok the father of Achim, and Achim the father of Eliud.
Matt 1:15; Eliud was the father of Eleazar, Eleazar the father of Matthan, and Matthan the father of Jacob.
Matt 1:16;
Jacob was the father of Joseph the husband of Mary, by whom Jesus was born, who is called the Messiah.
Matt 1:17; So all the generations from Abraham to David are fourteen generations; from David to the deportation to Babylon, fourteen generations; and from the deportation to Babylon to the Messiah, fourteen generations.
Matthew was a Jew, he wrote this from a Jewish perspective. The genealogy here starts with Abraham/Isaac, the Patriarch of the Jewish race.
Luke 3:23; When He began His ministry, Jesus Himself was about thirty years of age, being, as was supposed, the son of
Joseph, the son of Eli,
Luke 3:24; the son of Matthat, the son of Levi, the son of Melchi, the son of Jannai, the son of Joseph,
Luke 3:25; the son of Mattathias, the son of Amos, the son of Nahum, the son of Hesli, the son of Naggai,
Luke 3:26; the son of Maath, the son of Mattathias, the son of Semein, the son of Josech, the son of Joda,
Luke 3:27; the son of Joanan, the son of Rhesa, the son of Zerubbabel, the son of Shealtiel, the son of Neri,
Luke 3:28; the son of Melchi, the son of Addi, the son of Cosam, the son of Elmadam, the son of Er,
Luke 3:29; the son of Joshua, the son of Eliezer, the son of Jorim, the son of Matthat, the son of Levi,
Luke 3:30; the son of Simeon, the son of Judah, the son of Joseph, the son of Jonam, the son of Eliakim,
Luke 3:31; the son of Melea, the son of Menna, the son of Mattatha, the son of Nathan,
the son of David,
Luke 3:32; the son of Jesse, the son of Obed, the son of Boaz, the son of Salmon, the son of Nahshon,
Luke 3:33; the son of Amminadab, the son of Admin, the son of Ram, the son of Hezron, the son of Perez, the son of Judah,
Luke 3:34; the son of Jacob, the son of
Isaac, the son of Abraham, the son of Terah, the son of Nahor,
Luke 3:35; the son of Serug, the son of Reu, the son of Peleg, the son of Heber, the son of Shelah,
Luke 3:36; the son of Cainan, the son of Arphaxad, the son of Shem, the son of Noah, the son of Lamech,
Luke 3:37; the son of Methuselah, the son of Enoch, the son of Jared, the son of Mahalaleel, the son of Cainan,
Luke 3:38; the son of Enosh, the son of Seth, the son of Adam, the son of God.
Luke was a Gentile, he wrote this from a Gentile perspective. The genealogy here goes all the way back to Adam, the beginning of mankind.
Matthew does his genealogy from oldest to newest, and Luke does his from newest to oldest.
In both genealogies the names from Abraham to David are pretty much the same. After David, things branch off differently.
But the most interesting thing here is the father of Joseph, Luke says it was Eli and Matthew says it was Jacob.
Luke 3:23 says "as was supposed", the son of Eli ( or Heli ) some Bible, say it was "thought he was", other Bibles say "as was the custom".
The Greek word here is...
nomizō
nom-id'-zo
From G3551; properly to do by law (usage), that is, to accustom (passively be usual); by extension to deem or regard: - suppose, think, be wont.
Total KJV occurrences: 15
Now we have at least two options here. Either Matthew or Luke is wrong, and there is an error in the Bible... or...
We use the literal meaning of nomizo here, and go with "it was the custom of the law" that by extension... Eli was Joseph's father.
Usually unless a woman was a very important figure in Jewish history ( Rahab and Ruth ) the lineage is through the male side.
In this case "as was the custom of the law" Eli would be Mary's father. The Roman Catholics do not agree with this.
Note that Luke ( the Gentile ) doesn't use the woman's names in his genealogy. However, Matthew does, because these woman are prominent
figures in Jewish history. ( For example Ruth was married to Boaz )
The Roman Catholic church says Joachim and Anne ( I have seen these spelled different ways, such as Joakim and Anna ) are the parents of Mary.
At the Baptist, Foursquare and Assemblies of God seminaries I am familiar with, It is taught that Eli ( or Heli ) is Mary's father.
In Luke 3:23; it says Jesus was "the supposed" son of Joseph, although we know Joseph wasn't Jesus's biological father.