I "think" we need to define "GOOD" as it's meant in these scriptures.
Mr 10:18 And Jesus said unto him, Why callest thou me good? there is none good (without sin) but one, that is, God.
Ro 3:12 They are all gone out of the way, (sinners) they are together become unprofitable; there is none that doeth good, no, not one.(for all have sinned)
Ro 7:18 For I know that in me (that is, in my flesh,) dwelleth no good thing: (not sinless) for to will is present with me; but how to perform that which is good.....I find not. (no self righteousness)
19 For the good that I would I do not: but the evil which I would not, that I do.
Paul recognized that "in the flesh", he could never achieve the "righteousness" God requires, but with the "inward" desire to be righteous, God would save the Soul in spite of the sins of the flesh.
Ro 7:22 For I delight in the law of God after the inward man:
23 But I see another law in my members, warring against the "law of my mind", (carnal) and bringing me into captivity to the law of sin which is in my members.
24 O wretched man that I am! who shall deliver me (soul) from the body of this death? (flesh)
25 I thank God through Jesus Christ our Lord. So then with the mind I myself serve the law of God; but with the flesh the law of sin.
As Paul described, the "WILL of the soul/spirit" can be "separate" from the "will of the flesh", Paul said he died "daily", crucifying the old man to destroy the "body of sin".
1Co 15:31 I die daily.
Ro 6:6 Knowing this, that our old man is crucified with him, that the body of sin might be destroyed,
Ga 2:20 I am crucified with Christ: nevertheless I live; yet not I, but Christ liveth in me: and the life which I now live in the flesh I live by the faith of the Son of God, who loved me, and gave himself for me.