the length of PQ + the length of QR = the length of PR
(5x - 2) + (x + 12) = 40
We can take off the parenthesees since there is only addition between them
5x - 2 + x + 12 = 40
Rearrange the terms
5x + x + 12 - 2 = 40
Combine like terms
6x + 10 = 40
Subtract 10 from both sides of the equation.
6x = 30
Divide both sides of the equation by 6
x = 5
Now that we know what x is, plug it into each expression to find PQ and QR
PQ = 5x - 2 = ?
QR = x + 12 = ?