The closest anyone can get to answering your question, I believe, is to state what the Westminster Confession of Faith has to say about it.
Westminster Confession of Faith
Chapter Three
Of God’s Eternal Decree
Paragraph V. Those of mankind that are predestinated unto life, God, before the foundation of the world was laid, according to His eternal and immutable purpose, and the secret counsel and good pleasure of His will, has chosen, in Christ, unto everlasting glory,[9] out of His mere free grace and love, without any foresight of faith, or good works, or perseverance in either of them, or any other thing in the creature, as conditions, or causes moving Him thereunto;[10] and all to the praise of His glorious grace.[11]
[9] EPH 1:4 According as he hath chosen us in him before the foundation of the world, that we should be holy and without blame before him in love: 9 Having made known unto us the mystery of his will, according to his good pleasure which he hath purposed in himself: 11 In whom also we have obtained an inheritance, being predestinated according to the purpose of him who worketh all things after the counsel of his own wilL. ROM 8:30 Moreover whom he did predestinate, them he also called: and whom he called, them he also justified: and whom he justified, them he also glorified. 2TI 1:9 Who hath saved us, and called us with an holy calling, not according to our works, but according to his own purpose and grace, which was given us in Christ Jesus before the world began. 1TH 5:9 For God hath not appointed us to wrath, but to obtain salvation by our Lord Jesus ChrisT.
[10] ROM 9:11 (For the children being not yet born, neither having done any good or evil, that the purpose of God according to election might stand, not of works, but of him that calleth. 13 As it is written, Jacob have I loved, but Esau have I hated. 16 So then it is not of him that willeth, nor of him that runneth, but of God that sheweth mercy. EPH 1:4 According as he hath chosen us in him before the foundation of the world, that we should be holy and without blame before him in love. 9 Having made known unto us the mystery of his will, according to his good pleasure which he hath purposed in himself.
[11]EPH. 1:6,12.