As given in the picture, angles 1 and 2 are a linear pair. It means they're supplementary, they add up to 180 degrees.
1 + 2 = 180
x + 4 + 7x = 180
8x = 180-4
8x = 176
x = 22.
Now, for angle measures:
1: x + 4 = 22+4 = 26
2: 7x = 7*22 = 154
Answer: Angle 1 = 26 degrees
Angle 2 = 154 degrees