I have been struggling with this problem, and I think it should be possible to solve but right now I cannot find how.
Given two coordinates/points (x1,y1) and (x2,y2), the angle formed by legs d1 and d2 is 90°.
What are the lengths of d1 and d2?
Any help would be appreciated.

Hint:
Can you take it from here?