notice the picture below, the perpendicular line from the right-angle,
makes up 3 similar triangles, including the big one containing the small ones
so, you have three similar triangles, one large, a medium and a small one
now, using proportions for those folks, we end up with

solve for "x,y and z"