The length of the x in the diagram is 12.
We can set up the following equation using the similar triangles that are created when you have an altitude in a right triangle.
If you subtract 16 from 25, you get 9, which is the length of the segment next to the 16.
x^2 = 16(9)
x^2 = 144
x = 12