Let the common ratio between Rahul's age Hari's age be x
∴ Age of Rahul and Hari will be 5x years and 7x years
After 4 years the age of Rahul and Hari will be (5x+4) years and (7x+4) years
After 4 years , the sum of ages of Rahul and Hari is 56 years
∴5x+4+7x+4=56
12x+8=56
12x=56−8
12x=48
x=4
Rahul's age = 5x years
=5×4 = 20 years
Hari's age = 7x years
=7×4
=28 years
Answer : 20,28