identify the angles as complementary or supplementary and then find the value of x

supplementary 65
complementary 155
complementary 65
supplementary 155

find the value of x in the figure.
the figure shows an x and a 40 degree

40
50
140
180

Which equation can be used to find the value of x in this figure
the figure shows 106degrees and x

90+x=106
106-x=74
106+x=180
none of these