Salmon was the father of Boaz. Boaz was the father of Obed.
Salmon was the father of Boaz (whose mother was Rahab). Boaz was the father of Obed (whose mother was Ruth). Obed was the father of Jesse.
David was the son of Jesse. Jesse was the son of Obed. Obed was the son of Boaz. Boaz was the son of Salmon. Salmon was the son of Nahshon.
Then Boaz asked his foreman, “Who is that young woman over there? Who does she belong to?”
Amminadab was the father of Nahshon. Nahshon was the father of Salmon.
Obed was the father of Jesse. Jesse was the father of David.