Explanation
The x coordinates are the same, so we ignore them. Focus on the y coordinates only. Subtract them to get 8-2 = 6. Apply absolute value if the result is negative (recall negative distance isn't allowed). The distance from 8 to 2 on the number line is 6 units. Therefore, the distance between (1,8) and (1,2) is also 6 units.
The distance formula could be used, but I think it's overkill in this problem.