Since this is an absolute value expression you have to solve for both the positive and negative case.
x-2=6 add two to both sides
x=8
and
x-2=-6 add two to both sides
x=-4
So x=-4 and 8
So the solution on the number line is solid dots as x=-4 and x=8