Five years ago let the age of son was x years
Five years ago the age of man was 7x years
After five years the age of son is x + 5 years
After five years the the age of man is 7x + 5 year
According to the question:
Five years hence, the relation in their ages is:
Therefore present age of man is 7x + 5 = 7 \(\times\) 5 + 5 = 40years
Present age of son is x + 5 = 5 + 5 = 10 years