On the graph,
From one point to another, the distance is 1 unit
The two end points of the line segment are 2 units and 7 units
Let the end points be x₁ and x₂
The distance, d, between the two end points is the result of the subtraction of one end point from another.
The distance, d, of the two end points of the line segment is
Where
The distance, d is
Hence, the answer is 5 units