Half of R is shown as 20 degrees, so the other half of r is also 20 degrees.
A tangent line forms a right angle, so the tangent at P is 90 degrees.
X would be 180 - 90 - 20 = 70 degrees.
X = 70 degrees.