Step-by-step explanation:
I haven't used distance formula or Pythagoras theorem, not sure why that's given at the bottom of your question. check the image. that is how I solved it