Given that the number of integer points whose distance from the origin is less than 2 on the number axis is x, the number of integer points whose distance from the origin is not more than 2 is y, and the number of integer points whose distance from the origin is equal to 2 is Z, find x + y+ There must be a process, preferably a detailed explanation It's "leaving the origin." I wrote 8. The teacher said it was wrong

Given that the number of integer points whose distance from the origin is less than 2 on the number axis is x, the number of integer points whose distance from the origin is not more than 2 is y, and the number of integer points whose distance from the origin is equal to 2 is Z, find x + y+ There must be a process, preferably a detailed explanation It's "leaving the origin." I wrote 8. The teacher said it was wrong

The number of integer points on the number axis whose distance from the origin is less than 2 is 3: (- 1,0,1)
The number of integer points not greater than 2 is 5: (- 2, - 1,0,1,2)
The number of integer points equal to 2 is 2: (- 2,2)
So x + y + Z = 10