Explanation:
angle AEF is the supplementary angle of angle GEF. that means together they have 180°.
angle AEF = 180 - angle GEF
angle GEF = 180 - angle AEF
and the sum of all angles inside a triangle is airways 180°.
180 = 40 + (-2 + 20x) + (180 - (27x + 3))
140 = -2 + 20x + 180 - 27x - 3
-35 = -7x
x = 5
the angle AEF = 27×5 + 3 = 138°