x = 24
y = 58
Explanation:
5x+20 = 6x-4 ( vertically opposite angles)
20+4 = 6x-5x(collect like terms)
x = 24
(y-18)+(5x+20) = 180 (sum of angles on a straight line)
(y-18)+(5×24+20) = 180
(y-18)+140 = 180
y-18 = 180-140(collect like terms)
y-18 = 40
y = 40+18
y=58