Notice the lines and angles are in parallel.
(x + 10) and 40 are corresponding angles.
And corresponding angles are always equal
Therefore:
x + 10 = 40
x = 30 degrees
______________________________________
Have a look at the picture to learn about Angles in parallel lines