The 2 rectangles and triangles are similar to each other, so the corresponding sides between the same shape are proportional.
For the rectangle, 10 is 1 2/3 times greater than 6, so x is 12 times 1 2/3, which is 20. You can also think of it as 12 is 2 times 6 on the left rectangle, so x on the right rectangle is 2 times 10
For the triangle, the corresponding sides are NP and XZ, and XZ is 13 times as large as NP. The corresponding side to PO is ZY, and 7 times 13 is 91, so w is equal to 91.