Could you help me find X,

when running a line, in a right-triangle, from the 90° angle perpendicular to its opposite side, we will end up with three similar triangles, one Small, one Medium and a containing Large one. Check the picture below.
[tex]\cfrac{4}{x}~~ = ~~\cfrac{x}{9}\implies 36=x^2\implies \sqrt{36}=x\implies 6=x[/tex]