The sum of all the angles is 180 degrees because this is a supplementary angle.
5x + 4 + x - 2 + 3x + 7 = 180
Now you can combine like terms:
(5x + x + 3x) + (4 - 2 + 7) = 180
9x + 9 = 180
Now you must isolate x:
9x + 9 - 9 = 180 - 9
9x + 0 = 171
9x = 171
9x/9 = 171/9
x = 19
Check:
5(19) + 4 + 19 - 2 + 3(19) + 7
95 + 4 + 19 - 2 + 57 + 7
180
Hope this helped! Let me know if you have any further questions
~Just a girl in love with Shawn Mendes