PQ = 8, QR = 5, and PR = 10.
\(f_{PR}(x)=0\\ 5^2=8^2+10^2-2\cdot 8\cdot 10\cdot cos\ P\\ 160\cdot cos\ \ P=64+100-25\\ cos\ P=\frac{64+100-25}{160}\\ P=29.686° \)
\(f_{PX}(x)=tan\ (\frac{29.686}{2})\cdot x\\ f_{PX}(x)=0.265x\\ sin\ R:sin\ P=8:5\\ sin\ \ R= \dfrac{8\cdot sin\ P }{5}=\dfrac{8\cdot sin\ 29.686° }{5}\\ R=52.4105°\\ f_{RQ}(x)=tan\ (-R)\cdot (x-10)\\ f_{RQ}(x)=tan\ (-52,4105°)\cdot (x-10)\\ f_{RQ}(x)=-1,3\cdot (x-10)\\\)
\(f_{PX}(x)=f_{PQ}(x)\\ 0.265x=-1.3(x-10)\\ 0.265x=-1.3x+13\\ x=\dfrac{13}{1.565}\\ \color{blue}x_X=8.3067\\ \color{blue}y_X=2.2013\)
\(f_{XY}(x)=m(x-x_X)+y_X\\ m=tan\ (90°-R)=tan\ (90°-52.4105°)\\ m=0.7698\\ f_{XY}(x)=0.7698(x-8.3067)+2.2013\\ f_{XY}(x)=0.7698x-6.3946+2.2013=0\\ \color{blue}x_Y=5.4472\\ \color{blue}y_Y=0\)
\(L_{XY}=\sqrt{y_X^2+(x_X-x_Y)^2}=\sqrt{2.2013^2+(8.3067-5.4472)^2}\\ \color{blue}L_{XY}=3.6087\)
\(\color{blue}The\ length\ of\ \overline{XY}\ is\ 3.6807.\)
!