For this case we can solve the problem with the following structure:

The actual weight is x
The ideal weight is 20
And the tolerance is 0.5
So then our solution would be:

And we can rewrite the algebraic model on this way:

Adding 20 in all the sides of the inequality we got:
