For this case we can solve the problem with the following structure:
[tex]\left|Actual-Ideal\right|\leq tolerance[/tex]The actual weight is x
The ideal weight is 20
And the tolerance is 0.5
So then our solution would be:
[tex]\left|x-20\right|\leq0.5[/tex]And we can rewrite the algebraic model on this way:
[tex]-0.5\leq x-20\leq0.5[/tex]Adding 20 in all the sides of the inequality we got:
[tex]19.5\leq x\leq20.5[/tex]