I've come across a question that confuses me greatly: 
I am very confused with the explanation of this question:
How can we assume that $2l=24$? Why can we assume that $2l=24$ after the fact that we assume it's a right triangle with height 24 and a hypotenuse of 2l?
I don't get the next step either. How can we assume that the proportions that hold for the hypotenuse also hold for the height, and therefore deduce that$w=(1/4)12=3?$
Can someone explain this to me, thanks?
IMO, the explanation is not very clear...
We have three similar triangles, that give us two proportions :
and :
where $x$ is the height of the topmost right triangle .
This amounts to the following equations :
from which :
The author has "squeezed" them into the following :
Again, the first two give : $x=12$ (and not $l$) and the last two give : $(12+w)=\dfrac 5 4 12$.