Let Ajay has Rs.x with him and when Vineeth gives Rs. 5, both of them have x + 5 rupees with them.
If Vineeth gets RS.5 he has 5 times more than Ajay.
x + 5 + 5 = 5x
4 x = 10
x = \(\frac{10}{4}=\frac{5}{2}\) = 2.5 Rupees
Amount with Ajay = Rs. 2.50
Amount with Vineeth = Rs.12.50