Answer:
Let us consider B’s age = X
Then A’s age = 4X
Five years ago
⇒ A’s age = 4X + 5
⇒ B’s age = X + 5
Five years hence
⇒ A’s age = 4X + 5 + 5
⇒ A’s age = 4X + 10
⇒ B’s age = X + 5 + 5
⇒ B’s age = X + 10
From the given question
4X + 10 = 2(X + 10)
4X + 10 = 2X + 20
4X – 2X = 10
2X = 10
X = 5
A’s age = 4X + 5
A’s age = 25 years
B’s age = X + 5
B’s age = 10 years
please mark me as brainliest