Let the present age of Shreya =3a and age of Kavita =4a.
After 5 years, age of Shreya =3a+5 and age of Kavita =4a+5.
Given, 3a+5:4a+5=4:5
=>3a+54a+5=45
On cross multiplying,
15a+25=16a+20
a=5
Hence, present age of Shreya =3a=15 years and age of Kavita =4a=20 years.