Question 998051
Call their ages now x and y.
Thus x + y = 40 or x = 40 - y
x + 10 = 2(y + 10)
Now substitute
40 - y + 10 = 2y + 20
50 - y = 2y + 20
30 = 3y
y = 10
x = 30