You can
put this solution on YOUR website!Let's say Mary is m years old, and Susan is s years old. So twice Susan's age is 2s. Ten years younger than that is 2s - 10. Since that is Mary's age now, we can write:
Five years from now, Mary will be m + 5 years old, and Susan will be s + 5 years old. And the problem tells us that Mary will be eight years older than Susan then. So we can also write:

or
Since we know that

we can substitute this expression in the second equation.
Now solve for s:

Collect terms

Add -s and +5 to both sides
So Susan is 18. Let's put this value back into the first equation.
And Mary is 26.
Last step -- Very Important. Check your answer.
26 = 2 * 18 - 10, 26 = 26 Check and
26 + 5 = 18 + 13, 31 = 31 And both answers check.
Hope that helps,
John