Here we have three similar triangles
In similar triangles sides are in proportion
The altitude to the hypotenuse of a right triangle is the mean proportional between the segments into which it divides the hypotenuse.


We cross multiply to solve for y

Taking root of both sides
y=8