Answer:
Let:
- Present age of B be 'x' years.
- Present age of A be ( x + 5 ) years.
5 years ago,
- Age of A = (x + 5) - 5 years = x years.
- Age of B = ( x - 5 ) years.
According to the question,
Therefore,
Present age of B (x) = 15 years.
Present age of A (x + 5) = 20 years.