There are two passages that give dfferent linages. One is from David down to oseph one is from David down to Mary.
The question of linage is somewhat redundant. All of Israel is David's house, his kindgom, all of the people are like his sons and daughters.
God is not often shown to be...