Genesis 2:7 gives the idea that a human being is the combination of a physical body (from dust) and a spirit (God's breath of life):
7 then the LORD God formed the man of dust from the ground and breathed into his nostrils the breath of life, and the man became a living creature. [Genesis 2:7, ESV]
Ecclesiastes 12:5-7 seems to defend the same dualistic nature (body + spirit):
5 they are afraid also of what is high, and terrors are in the way; the almond tree blossoms, the grasshopper drags itself along, and desire fails, because man is going to his eternal home, and the mourners go about the streets— 6 before the silver cord is snapped, or the golden bowl is broken, or the pitcher is shattered at the fountain, or the wheel broken at the cistern, 7 and the dust returns to the earth as it was, and the spirit returns to God who gave it. [Ecclesiastes 12:5-7, ESV]
In contrast, Paul appears to believe in 3 components: spirit + soul + body.
23 Now may the God of peace himself sanctify you completely, and may your whole spirit and soul and body be kept blameless at the coming of our Lord Jesus Christ. [1 Thessalonians 5:23, ESV]
Question: What is the makeup of man? Body and spirit? Or body and soul and spirit? How do we solve the apparent contradiction?