Answer:
10 years
40 years
Step-by-step explanation:
let present ag e of son=x
5 years ago age of son=x-5
5 years ago age of man=7(x-5)=7x-35
present age of man=7x-35+5=7x-30
after 5 years
age of son=x+5
age of man=7x-30+5=7x-25
also 7x-25=3(x+5)
7x-25=3x+15
7x-3x=15+25
4x=40
x=10
age of son=10 years
age of man=7*10-30=70-30=40 years