Amy is x years old
Her brother is then x-10 years old
(This means when we find x we have found Amy's age. We can then subtract 10 to get her brother's age)
(x) + (x-10) = 34
2x - 10 = 34
2x = 44
x = 22 (Amy is 22 years old, her brother is 12 years old)