.
Five years ago John was (still; as always) 4 years younger than Mary and he was half of her age ====>
hence, his age then was 4 years, while Mary's age was 8 years at that time.
It means that now John is 4 + 5 = 9 years old, while Mary is 8 + 5 = 13 years old.
Solved.
---------------------
There is a bunch of lessons on age word problems
- Age problems and their solutions
- A fresh formulation of a traditional age problem
- Really intricate age word problem
- Selected age word problems from the archive
- Age problems for mental solution
in this site.
Read them and become an expert in solving age problems.
Also, you have this free of charge online textbook in ALGEBRA-I in this site
- ALGEBRA-I - YOUR ONLINE TEXTBOOK.
The referred lessons are the part of this online textbook under the topic "Age word problems".
Save the link to this online textbook together with its description
Free of charge online textbook in ALGEBRA-I
https://www.algebra.com/algebra/homework/quadratic/lessons/ALGEBRA-I-YOUR-ONLINE-TEXTBOOK.lesson
to your archive and use it when it is needed.