The figure shows two right triangles, each with its longest side on the same line. R 4 How long is XY? Type the answer in the box.

Answer: 6
Step-by-step explanation:
Because corresponding sides of similar triangles are proportional,
[tex]\frac{XY}{3}=\frac{4}{2}\\ \\ \frac{XY}{3}=2\\ \\ XY=\boxed{6}[/tex]