We can split the line into two parts and then we see the distance from -8 to 0 equals 8 (in mathematical language |-8| = 8). The distance from 0 to 21 is obviously 21. Therefore the total length equals the sum of the numbers above and is 21 + 8 = 29.