You also need to use the distance formula for this problem.
I wrote out the problem above.
Hope this helps!
9.4m questions
12.1m answers