Given two numbers, calculate the distance between them on a number line. If it is less than 10 return the distance, otherwise return 10.