What is the meaning of Matthew 1:5?

Matthew 1:5 KJV
And Salmon begat Booz of Rachab; and Booz begat Obed of Ruth; and Obed begat Jesse;

Matthew 1:5 MKJV
And Salmon fathered Boaz of Rahab, and Boaz fathered Obed of Ruth, and Obed fathered Jesse,

Matthew 1:5 NKJV
Salmon begot Boaz by Rahab, Boaz begot Obed by Ruth, Obed begot Jesse,

Matthew 1:5 KJV 2000
And Salmon begat Boaz of Rahab; and Boaz begat Obed of Ruth; and Obed begat Jesse;

Interlinear KJV

And /de/ Salmon /Salmon/ begat /gennao/ Booz /Booz/ of /ek/ Rachab; /Rhachab/ and /de/ Booz /Booz/ begat /gennao/ Obed /Obed/ of /ek/ Ruth; /Rhouth/ and /de/ Obed /Obed/ begat /gennao/ Jesse; /Iessai/

Commentary

And, after their settlement in Canaan, Salmon begat Boaz of Rahab, who had been a native of that country, but entertained the spies at Jericho, and afterwards embracing the Jewish religion, had the honor to be thus incorporated with this noble family; and Boaz their son begat Obed of Ruth, the Moabitess, who had so resolutely chosen to adhere to the God and people of Israel; and Obed in a very advanced age, begat Jesse: – Philip Doddridge N.T

We note that two women are mentioned in this fifth verse: a Canaanite and a Moabitess. Thus Gentile blood mingled with the Hebrew strain. Our King has come to break down the partition wall. As Gentiles, we rejoice in this. Jesus is heir of a line in which flows the blood of the harlot Rahab, and of the rustic Ruth; he is akin to the fallen and to the lowly, and he will show his love even to the poorest and most obscure. I, too, may have part and lot in him. – Spurgeon’s Commentary on Matthew

And Salmon begat Booz of Rachab, who received the spies in Jericho; and Booz begat Obed of Ruth, the Moabitess; which two women, being foreigners from the commonwealth of Israel, were both mercifully received into the Church of God, and honored with the progenitor of Christ. – Hall’s Explication of Hard Text

Mt ch 1Mt 1:1Mt 1:2Mt 1:3Mt 1:4Mt 1:5Mt 1:6Mt 1:7Mt 1:8
Mt 1:9Mt 1:10Mt 1:11Mt 1:12Mt 1:13Mt 1:14Mt 1:15Mt 1:16Mt 1:17
Mt 1:18Mt 1:19Mt 1:20Mt 1:21Mt 1:22Mt 1:23Mt 1:24Mt 1:25