bear in mind that, a perpendicular line stemming from the right-angle like so, creates three similar triangles, a large one, containing the other two smaller ones, a medium and a small.
so.. .we can just use the medium and small proportions.
Check the picture below.