I find it useful to read the passage that a contains the verses in question.
Luke 18:18-30
18 And a certain ruler asked him, saying, Good Master, what shall I do to inherit eternal life?
19 And Jesus said unto him, Why callest thou me good? none is good, save one, that is, God.
20 Thou knowest the commandments, Do not commit adultery, Do not kill, Do not steal, Do not bear false witness, Honour thy father and thy mother.
21 And he said, All these have I kept from my youth up.
22 Now when Jesus heard these things, he said unto him, Yet lackest thou one thing: sell all that thou hast, and distribute unto the poor, and thou shalt have treasure in heaven: and come, follow me.
23 And when he heard this, he was very sorrowful: for he was very rich.
24 And when Jesus saw that he was very sorrowful, he said, How hardly shall they that have riches enter into the kingdom of God!
25 For it is easier for a camel to go through a needle's eye, than for a rich man to enter into the kingdom of God.
26 And they that heard it said, Who then can be saved?
27 And he said, The things which are impossible with men are possible with God.
28 Then Peter said, Lo, we have left all, and followed thee.
29 And he said unto them, Verily I say unto you, There is no man that hath left house, or parents, or brethren, or wife, or children, for the kingdom of God's sake,
30 Who shall not receive manifold more in this present time, and in the world to come life everlasting.
Until a man is ready to leave his past, he will continue to live in his past.
If you want to follow the leadership of the lord Jesus Christ, you have to learn to travel light.
No one can be on the move like Jesus Christ was while being burdened by the cares of this world, by the riches of this world.
Matthew 13:
And he spake many things unto them in parables, saying, Behold, a sower went forth to sow;
4 And when he sowed, some seeds fell by the way side, and the fowls came and devoured them up:
5 Some fell upon stony places, where they had not much earth: and forthwith they sprung up, because they had no deepness of earth:
6 And when the sun was up, they were scorched; and because they had no root, they withered away.
7 And some fell among thorns; and the thorns sprung up, and choked them:
8 But other fell into good ground, and brought forth fruit, some an hundredfold, some sixtyfold, some thirtyfold.
9 Who hath ears to hear, let him hear.
18 Hear ye therefore the parable of the sower.
19 When any one heareth the word of the kingdom, and understandeth it not, then cometh the wicked one, and catcheth away that which was sown in his heart. This is he which received seed by the way side.
20 But he that received the seed into stony places, the same is he that heareth the word, and anon with joy receiveth it;
21 Yet hath he not root in himself, but dureth for a while: for when tribulation or persecution ariseth because of the word, by and by he is offended.
22 He also that received seed among the thorns is he that heareth the word; and the care of this world, and the deceitfulness of riches, choke the word, and he becometh unfruitful.
23 But he that received seed into the good ground is he that heareth the word, and understandeth it; which also beareth fruit, and bringeth forth, some an hundredfold, some sixty, some thirty.
You cannot serve God and mammon.
The young ruler needed to unload all those things that would choke the word out of his life.
Yet we read of Joseph of Arimathea who was a wealthy man and a disciple of Jesus Christ.
Joseph could handle his wealth and be a disciple at the same time. He had learned to put God first in his life and was blessed for it.
The young ruler kept the ten commandments, but the law contains hundreds of other laws that needed keeping as well.
The young ruler needed to learn to focus on the things of God without distraction.
People who climb mountains do not take anything more than what is necessary, they do not take laptops, TV's , microwave ovens with them.
If you want to reach reach you high places, you must learn to leave behind those things that impede and distract you from your goal.
2 Samuel 22:34 He maketh my feet like hinds' feet: and setteth me upon my high places.
A hind, a deer, does not carry a suit case or a tv or a laptop with it.
It has nothing but itself and a goal