For #17 the distance between -6 and 0 is 6 because you are basically counting backwards. It is the same for #18. So the distance would be 18 for #18.
17) 6 units
18) 18 units
These should be the answer