Given: |x−2|+|x−8|=10
Case 1: For x<2
−(x−2)−(x−8)=10
−x+2−x+8=10
−2x+10=10
−2x=0
⇒ x=0
Case 2: For 2≤x<8
(x−2)−(x−8)=10
x−2−x+8=10
6=10 No solution
Case 3: For x≥8
x−2+x−8=10
2x−10=10
2x=20
⇒ x=10
Hence, the values of x are 0 and 10.