You can put this solution on YOUR website! Let = Mary's age now
Let = her father's age now
---------------------------------
(1)
(2)
---------------------------
Substitute (1) into (2)
(2)
(2)
(2)
(2)
(2)
and
(1)
(1)
(1)
----------------
Mary is 10
Her father is 40
----------------
check:
(2)
(2)
(2)
(2)
OK