Answer: 29
====================================================
Work Shown:
The two angles shown are a linear pair. They are adjacent and supplementary. Supplementary angles add to 180 degrees.
(4x-5)+(x+40) = 180
5x+35 = 180
5x = 180-35
5x = 145
x = 145/5
x = 29
--------
As a check, if x = 29, then
4x-5 = 4*29-5 = 116-5 = 111
x+40 = 29+40 = 69
The two angles are 69 and 111 degrees which add to 69+111 = 180, which helps confirm the answer.