Answer:
|540 - g|
|g - 540|
Explanation:
Given that:
Weight of box = g
Desired weight = 540
Hence, to obtain the difference between the weight of the box and the desired weight ; the result could either be lesser or larger then desired weight ; However , since we do not know If it is lesser or higher, then we take the absolute value ; so that we always obtain a positive value.
The difference will thus be either ;
Weight of box - desired weight : |g - 540|
OR
deaired weight - weight of box : |540 - g|