Tell you what, why don't you fetch both passages and post them both here in it's entirety, full context and we can analyse it together?
Matthew 27
Judas Hangs Himself
1. Early in the morning, all the chief priests and the elders of the people came to the decision to put Jesus to death.
2. They bound him, led him away and handed him over to Pilate, the governor.
3. When Judas, who had betrayed him, saw that Jesus was condemned, he was seized with remorse and returned the thirty silver coins to the chief priests and the elders.
4. "I have sinned," he said, "for I have betrayed innocent blood." "What is that to us?" they replied. "That's your responsibility."
5
. So Judas threw the money into the temple and left. Then he went away and hanged himself.6. The chief priests picked up the coins and said, "It is against the law to put this into the treasury, since it is blood money."
7. So they decided to use the money to buy the potter's field as a burial place for foreigners.
8. That is why it has been called the Field of Blood to this day.
9. Then what was spoken by Jeremiah the prophet was fulfilled: "They took the thirty silver coins, the price set on him by the people of Israel,
10. and they used them to buy the potter's field, as the Lord commanded me."
Acts 1
Matthias Chosen to Replace Judas
12 Then the apostles returned to Jerusalem from the hill called the Mount of Olives, a Sabbath day’s walk from the city.
13 When they arrived, they went upstairs to the room where they were staying. Those present were Peter, John, James and Andrew; Philip and Thomas, Bartholomew and Matthew; James son of Alphaeus and Simon the Zealot, and Judas son of James.
14 They all joined together constantly in prayer, along with the women and Mary the mother of Jesus, and with his brothers.
15 In those days Peter stood up among the believers (a group numbering about a hundred and twenty)
16 and said, “Brothers and sisters, the Scripture had to be fulfilled in which the Holy Spirit spoke long ago through David concerning Judas, who served as guide for those who arrested Jesus.
17 He was one of our number and shared in our ministry.”
18
(With the payment he received for his wickedness, Judas bought a field; there he fell headlong, his body burst open and all his intestines spilled out.19 Everyone in Jerusalem heard about this, so they called that field in their language Akeldama, that is, Field of Blood.)
20 “For,” said Peter, “it is written in the Book of Psalms: “ ‘May his place be deserted; let there be no one to dwell in it,’and, “ ‘May another take his place of leadership.’
21 Therefore it is necessary to choose one of the men who have been with us the whole time the Lord Jesus was living among us,
22 beginning from John’s baptism to the time when Jesus was taken up from us. For one of these must become a witness with us of his resurrection.”
23 So they nominated two men: Joseph called Barsabbas (also known as Justus) and Matthias.
24 Then they prayed, “Lord, you know everyone’s heart. Show us which of these two you have chosen
25 to take over this apostolic ministry, which Judas left to go where he belongs.”
26 Then they cast lots, and the lot fell to Matthias; so he was added to the eleven apostles
Knock yourself out.