Let seven years, age of Swati was x years and age of Varun was 5x2 years.
Present age of Swati = (x + 7) years
Present age of Varun = (5x2 + 7) years
Given, after 3 years swati's age will be 2/5th of Varun's age.
Age of Swati after 3 years = (x + 7 + 3) years = (x + 10) years
Age of Varun after 3 years = (5x2 + 7 + 3) years = (5x2 + 10) years
Given, age of Swati after 3 years = Two–fifths age of varun after 3 years
(x + 10) = 2(x2 + 2)
x + 10 = 2x2 + 4
2x2 – x + 4 – 10 = 0
2x2 – x – 6 = 0
2x2 – 4x + 3x – 6 = 0
2x(x – 2) + 3(x – 2) = 0
x = 2 [ Age can't be negative ]
Therefore, the present age of Swati = (2 + 7) = 9 year and the present age of Varun = 5(2)2+7=27 years.