This can be solved using simultaneous equations. Please refer to the diagram for the labelling.

From the diagram we can see (by Pythagoras' Theorem):

...[1]

...[2]

...[3]

...[4]

Subtracting the first from the second,

...[5]

Then, subtracting [5] from [3],

So we have