Answer:
C.
Step-by-step explanation:
We have been given a figure of angles formed on a straight line.
Since we know that the angles on a straight line add up-to 180 degrees. Upon using this property we can set an equation as:

Let us subtract 40 and 31 degrees from both sides of our equation to solve to x.

Upon factoring negative sign from right side of our equation we will get,

Therefore, the equation
can be used to find the value of x and option C is the correct choice.