What is the answer for x?

Answer:
Step-by-step explanation:
The triangle’s angles add up to 180 degrees
so 40 + (16x + 2) + ∠C = 180
The straight angle is 180°
so ∠C = 180 - (23x + 7)
∠C = 180 - 23x -7
∠C = 173 - 23x
and then 40 + (16x + 2) +(173 - 23x) = 180
40 + 16x + 2 + 173 - 23x = 180
215 - 7x = 180
-7x = 180 - 215
-7x = -35
x = 5
please give me a brainliest answer