The two angles other than 40° in the triangle are same so let us name it y.
Now, sum of interior angles of a triangle is 180°
Therefore,
40 + y + y = 180
40 + 2y = 180
2y = 180 - 40
2y = 140
y = 140/2
y = 70
Now x = 180 - y ( linear pair )
x = 180 - 70
x = 110°