Points X, Y, and Z are on the sides QR , PR, and PQ respectively, of right triangle PQR such that PZXY is a square. If PQ=12 and PR=8, then what is the side length of the square?
Using similar triangles, and the fact that RY:XZ:RP = 3:4:7, the side length of the square is 32/7.