NET
18 The wicked become a ransom for the righteous, and the treacherous are taken in the place of the upright.
Darby
18 The wicked is a ransom for the righteous, and a treacherous [man] in the stead of the upright.
KJV
18 The wicked [shall be] a ransom for the righteous, and the transgressor for the upright.