How do biblical genealogies work?

A reader asks: “On the feast day of the Nativity of the Blessed Virgin Mary, the Gospel is the genealogy of Jesus on Joseph’s side. It says Jesse was an ancestor of ‘Joseph, the husband of Mary.’ But, in the Liturgy of