When point C is located on the number axis, the value of | x 1 | X-2 | is the smallest?

When point C is located on the number axis, the value of | x 1 | X-2 | is the smallest?

When point C is located on the number axis, the value of | x 1 | X-2 | is the smallest?
When - 1 ≤ x ≤ 2, the value of | x + 1 | + | X-2 | is the smallest, which is 3