On the number axis, the number of integer points whose distance from the origin is less than 2 is x, and the number of integer points whose distance from the origin is not more than 2 is y, then the sum of X and y

On the number axis, the number of integer points whose distance from the origin is less than 2 is x, and the number of integer points whose distance from the origin is not more than 2 is y, then the sum of X and y

Analysis: if the distance is less than 2, there are only three integers - 1,0,1; if the distance is not more than 2, there are five integers including - 2, - 1,0,1,2
So x = 3, y = 5,
x+y=3+5=8.