The sum of ages of two brothers , ali and ahmed, add up to 35.the difference of their ages is 11 years.what are their ages ?

x + y = 35

x - y = 11
------------- add
2 x + 0 = 46
x = 23
y = 35-x = 12