From the diagram,
This implies that,
So, in ,
This implies that,
And similarly, in .
This implies that,
Thus, the angles are , , and .
Since, , and , therefore, and are similar, by angle-angle theorem.
Thus, .
Since, it is aright angled triangle therefore,
Also,