by skipants · 3mo ago · 0 comments
x: Ann's current age
y: The age difference between Ann and Mary
24 = x + y (ie. their current ages)
x = (24/2) + y (ie. their age in the past)
Solve for y in one equation and plug it into the other. You'll get x = 18. Now : Mary is 24 = 2y, Ann is x
Past: Mary is x, Ann is 12 = y
Moreover, we have x + delta = 24, and 12 + delta = x (they get older at same rate), so delta = 6 and x = 18.