Not that I care much about the subject. Wikipedia seems to think both genealogists go thru Christ's father, though it mentions that some people believe one genealogy is for Mary.The genealogies in both Matthew and Luke, although they differ, are about Jesus' male ancestors; they have nothing to do with Mary.
Gotquestions.org thinks one genealogy is for Mary and one for Joseph.
Gotquestions.org
However, there is good reason to believe that Matthew and Luke are in fact tracing entirely different genealogies. For example, Matthew gives Joseph’s father as Jacob (Matthew 1:16), while Luke gives Joseph’s father as Heli (Luke 3:23). Matthew traces the line through David’s son Solomon (Matthew 1:6), while Luke traces the line through David’s son Nathan (Luke 3:31). In fact, between David and Jesus, the only names the genealogies have in common are Shealtiel and Zerubbabel (Matthew 1:12; Luke 3:27).
Wikipedia
The New Testament provides two accounts of the genealogy of Jesus, one in the Gospel of Matthew and another in the Gospel of Luke.[1] Matthew starts with Abraham, while Luke begins with Adam. The lists are identical between Abraham and David, but differ radically from that point. Matthew has twenty-seven generations from David to Joseph, whereas Luke has forty-two, with almost no overlap between the names on the two lists. Notably, the two accounts also disagree on who Joseph's father was: Matthew says he was Jacob, while Luke says he was Heli.[2]
Rose window in Basilica of Saint-Denis, France, depicting the ancestors of Jesus from Jesse onwards
Traditional Christian scholars (starting with Africanus and Eusebius[3]) have put forward various theories that seek to explain why the lineages are so different,[4] such as that Matthew's account follows the lineage of Joseph, while Luke's follows the lineage of Mary, although both start with Jesus and then go to Joseph, not Mary. Some modern critical scholars like Marcus Borg and John Dominic Crossan state that both genealogies are inventions, intended to bring the Messianic claims into conformity with Jewish criter