see the figure below to better understand the problem
I divided the segment between 0 and 2 into 5 spaces
The value of each space is
(2-0)/5=2/5
so
If you multiply the width of each space (2/5) by the number of spaces, the result must be equal to 2
Verify
(2/5)*5=2 is ok