Let the present ages of the two persons be '5x' and '7x' years.
Ratio of their present ages = 5 : 7.
Eighteen years ago, their ages were (5x 18) and (7x 18), respectively.
But eighteen years ago the ratio of their ages was 8 : 13.
So, =
13(5x 18) = 8(7x 18)
65x 234 = 56x 144
65x 56x = 234 144
9x = 90
x = = 10
So, their ages are 5x = 510 = 50 years and 7x = 7 10 = 70 years.