I have no idea what I am doing

You have to find the measure of angle QPR.
Solve:
[tex]40 = 8x + 7 + 9x + 16[/tex]
Add like terms
[tex]40 = 17x + 23[/tex]
Solve
[tex]40 - 23 = 17x + 23 - 23[/tex]
[tex]17 = 17x\\\frac{17}{17} = \frac{17}{17}x\\1 = x[/tex]
Plug in x to solve for the angle measure of QPR
[tex]9(1) + 16 =\\9 + 16 =\\25[/tex]
The angle measure of QPR is 25°