The given figure shows a pair of parallel lines cut by a transversal.
The angles NQM and PQR are corresponding angles, which means they are equal when the lines are parallel.
Therefore, we can set up an equation: 2x + 8 = x + 22
Solving for x, we get: x = 14
The value of x is 14.