The values of x are 20 and 35 respectively.
1.)
(2x + 20) + 6x = 180 (same side exterior angles)
8x = 180 - 20
8x = 160
x = 20
2.)
(n - 2)180 (sum of interior angles of a polygon)
(5 - 2)180
180×3 = 540
Taking the sum:
90 + 146 + 3x + 10 + 2x + 119 = 540
365 + 5x = 540
5x = 175
x = 35
Hence, the value of x is 35.