How do you solve this question. I found the first part but don't know how to find distance