That's not how I read it. I read it as:
Now : Mary is 24 = 2y, Ann is x Past: Mary is x, Ann is 12 = y