Relegate the bottom two plus everyone who has the same points as 18th.
Or
Relegate the bottom two plus whoever has been in the division the longest.
Or
Give the bottom 3 a dogs life, they play the team 17 places above them and if they win by 3 goals, then the higher placed team is relegated...