Answer:
x=15
Explanation:
Angles 2 and 4 are same-side interior angles. This means that if they are supplementary angles, then the lines A and B are parallel.
Supplementary angles, when added together, will equal a total of 180°. Set up an equation in which the angles are added and are equal to 180:

Solve for x. Remove the parentheses and combine like terms:

Work to isolate the variable, x. Subtract 90 from both sides:

Isolate x. Divide both sides by 6:

The value of x is 15.
:Done
If you want to check your work, insert the value of x into the angles, and add them. If the answer is 180, then the value of x is true:

∠2=40

∠4=140
∠2+∠4=180
40+140=180
The value of x is true.