Say Ram’s present age = R,
Shyam’s present age = S,
R:S = 3:4,
R = 3S/4 ———— (1)
5 years ago Ram’s age = R-5,
5 years ago Shyam’s age S-5, and according to given condition, R-5 = (S-5)/2 ——- (2)
From 1 and 2:
(R – 5) = ((4R/3)-5)/2,
6R – 30 = 4R – 15,
R = 15/2 = 7.5 years,
After 7.5 years, Ram’s age = 7.5 + 7.5 = 15 years.