The ages of Rahul and Haroon are in the ratio 5:7. Four years later the sum of their ages will be 56 years. What are their present ages?

Let the ages of Rahul and Haroon be 5x and 7x.

Then, 5x+4+7x+4 = 56


12x = 48



18