In order to solve this, you need a diagram.
From this diagram, you can set up an expression.
Let's say the total distance is represented by the variable T.

To solve for x and y, you need to do the Pythagorean Theorem.

Now plug these values back into the expression and you will have your final answer.
