We can model this with the following inequality
50x + 160 ≤ 1000 where x is the number of boxes....so, subtracting 160 from each side, we have
50x ≤ 840 divide both sides by 50
x ≤ 16.8 boxes ....but since he can't bring up partial boxes, round down to 16