Well we can see that 40+30+x=180 degrees (Because it is a straight line)
So that means x=110 degrees.