Mary is as old as Mario will be when Mary is twice as old as Mario was when Mary’s age was half the sum of their present ages. Mario is as old as Mary was when Mario was half the age he will be 10 years from now. How old are Mary and Mario?

20

4