a) 25 - (30 + x) = x - (27 - 8)
25 - 30 - x = x - 27 + 8
- x - x = -25 + 30 - 27 + 8
-2x = -14
x = -14 : (-2)
x = 7.
b) (x - 12) - 15 = (20 - 7) - (x + 18)
x - 12 - 15 = 20 - 7 - x - 18
x + x = 12 + 15 + 20 - 7 - 18
2x = 22
x = 22 : 2
x = 11.