I am going to focus my very brief (for it is late) post on the following sentance.
However, Jesus says "forgive and you will be forgiven"
In other words, as long as we extend forgiveness to others, we are forgiven.
but what about Romans 10:9 because, if you confess with your mouth that Jesus is Lord and believe in your heart that God raised him from the dead, you will be saved.
or Acts 2:37b and [they] said to Peter and the rest of the apostles, Brothers, what shall we do? 38 And Peter said to them, Repent and be baptized every one of you in the name of Jesus Christ for the forgiveness of your sins, and you will receive the gift of the Holy Spirit.
Here we have three verses that seem to say something different about salvation. Is it by forgiving others? Or believing on Jesus as Lord, or repenting?
Without going into too much detail, I think what Jesus is saying is that if you have true faith, and are one of the flock, you will realise the great debt Christ paid for you and will therefore forgive your bretheren. Consider this parable in Matthew 18.
21 Then Peter came up and said to him, Lord, how often will my brother sin against me, and I forgive him? As many as seven times? 22 Jesus said to him, I do not say to you seven times, but seventy times seven. [7]
23 Therefore the kingdom of heaven may be compared to a king who wished to settle accounts with his servants. [8] 24 When he began to settle, one was brought to him who owed him ten thousand talents. [9] 25 And since he could not pay, his master ordered him to be sold, with his wife and children and all that he had, and payment to be made. 26 So the servant [10] fell on his knees, imploring him, Have patience with me, and I will pay you everything. 27 And out of pity for him, the master of that servant released him and forgave him the debt. 28 But when that same servant went out, he found one of his fellow servants who owed him a hundred denarii, [11] and seizing him, he began to choke him, saying, Pay what you owe. 29 So his fellow servant fell down and pleaded with him, Have patience with me, and I will pay you. 30 He refused and went and put him in prison until he should pay the debt. 31 When his fellow servants saw what had taken place, they were greatly distressed, and they went and reported to their master all that had taken place. 32 Then his master summoned him and said to him, You wicked servant! I forgave you all that debt because you pleaded with me. 33 And should not you have had mercy on your fellow servant, as I had mercy on you? 34 And in anger his master delivered him to the jailers, [12] until he should pay all his debt. 35 So also my heavenly Father will do to every one of you, if you do not forgive your brother from your heart.