Final answer:
By summing up PQ and QR which equals PR, and solving the resulting equation, we found that w = 10, PR = 31 (given), and QR = 14.
Step-by-step explanation:
To solve for w, PR, and QR in the scenario where Q is situated between P and R, we have the following information: 
 - PQ = 2w - 3
- QR = 4 + w
- PR = 31
Since Q is between P and R, the sum of PQ and QR is equal to PR. This gives us:
 (2w - 3) + (4 + w) = 31
 Combine like terms:
 3w + 1 = 31
 Now solve for w:
 3w = 30
 w = 10
 With the value of w, we can find PQ and QR:
 PQ = 2(10) - 3 = 17
 QR = 4 + 10 = 14
 Thus, using algebra, we have found that w is 10, PQ is 17, and QR is 14.