Genealogy is a record of ancestors, or descendants.
And David was the father of Solomon by the wife of Uriah, and Solomon the father of Rehoboam, and Rehoboam the father of Abijah, and Abijah the father of Asa, and Asa the father of Jehoshaphat, and Jehoshaphat the father of Joram, and Joram the father of Uzziah, and Uzziah the father of Jotham, and Jotham the father of Ahaz, and Ahaz the father of Hezekiah, and Hezekiah the father of Manasseh, and Manasseh the father of Amos, and Amos the father of Josiah, and Josiah the father of Jechoniah and his brothers, at the time of the deportation to Babylon. That part of the enigma actually has the likely answer. Very simply, one of the listings is that of Mary. Simple logic demands that Joseph couldn't have two sets of ancestors, while Mary had none. Although there are a number of other theories, many Biblical scholars believe that Luke's listing is for Mary , and Matthew's is for Joseph .