Speed = distance/time
Let the speed of Ajeet be ‘a’ and speed of Amit be ‘b’.
Given, while covering distance of 30 km.
Ajeet takes 2 hours more than Amit .
If Ajeet doubles his speed, he would take 1 hour less than Amit .

Adding the two equations
⇒ 30/a - 15/a = 3
⇒ a = 5 km/hr
Thus,
30/5 – 30/b = 2
⇒ b = 7.5 km/hr