Please explain how to find QP on the attached drawing. Thanks!

Answer:
QP = 6
Step-by-step explanation:
We are given a line MP with a point on it Q and we are to find the length of the line segment QP.
We know that the length of MP is [tex] x + 17 [/tex], MQ is [tex]3[/tex] and QP is [tex] 2 x + 22 [/tex] so we can write it as:
[tex]MP=MQ+QP[/tex]
[tex]x+17=3+2x+22[/tex]
[tex]2x-x=17-22-3[/tex]
[tex]x=-8[/tex]
Substituting this value of x to find the length of QP:
QP = [tex] 2x +22 = 2(-8) +22 = [/tex] 6