Mary's genealogy is mentioned nowhere in Scripture unless you ignore what it actually says in Luke 3 and presume that Heli was Joseph's father-in-law. Joseph's geneaology is irrelevant because he was not Jesus' biological father.
You apparently have misread my post.