a + b = 22
a - b = 12
a = 12 + b
12 + b + b = 22
12 + 2 × b = 22
2 × b = 22 - 12
2 × b = 10
b = 10 : 2
b = 5
a = 12 + 5
a = 17