Given, ratio of the ages of Rahul and Ravi is 3 : 4.
Let the ages of Rahul and Ravi be 3a and 4a respectively.
Given, After 6 years, the new ratio of their ages will be 4 : 5.
⇒3a+64a+6=45
⇒ 15a + 30 = 16a + 24
⇒ a = 6
Present age of Ravi = 4a = 24 years