First of all, let’s look at the question. 5 subtracted from x. This means that it is 5 - x. Then, we know it is at most -21. That means that 5 - x needs to be less than or equal to -21.
Therefore, our equation is 5 - x < 21. Please note that the inequality sign should have a solid sign beneath.