What is the current age of the two persons if their ages were in the ratio 5:7 and 18 years ago their ages were in the ratio 8: their present age?