what is the value of X

We know: The sum of measures of a tringle is equal 180°.
Therefore we have the equation:
m∠SQR + 58° + 35° = 180°
m∠SQR + 93° = 180° subtract 93° from both sides
m∠SQR = 87°
Angles SQR and PQR are supplementary. The sum of the measures of supplementary angles is 180°.
Therefore:
x + 87 = 180 subtract 87 from both sides