Can you explain how to do this?

18 < 20 + w

18 < 20-w

18-20 < 20-w-20
-2 < -w

Flip the inequality sign when multiplying by -1.
2 > w