What is the value of x ?

Vertical angles are congruent (equal), and the angles below are vertical angles.
x + 40 = 3x
40 = 3x - x
2x = 40
x = 20