I know this has something to do with the distance formula, but I dont know how to do this exactly. Any help is appreciated