Respuesta :

Are a and b two points on a line
If they are you can use the distance formula