The distance in a coordinate line is given by:
in this case we know that A=-6 and we would like to know the value of B so that the distance is 20. Plugging this values in the equation we have:
Now we need to remember the property:
Using this we have:
Then:
Therefore the two possible coordinates for B are 14 and -26.