the angles are supplementary, meaning they add up to 180 degrees. so add the equations to get
22x + 4 = 180
subtract 4 to both sides
22x = 176
divide 22 to both sides
x = 8
if you also want to know the angle measurements, plug x into their respective equations.