1. Draw a sketch (see attachment)
2. Let x, y denote the distances in question, a denotes the side BC and b denotes the side AC.
3. Use proportions:
b = 2y
a = 2x = y (according to the wording of the question!)
4. Use the pythagorean theorem:
5. I'll leave the rest for you.