A takes 3 hours more than B to walk 30 km. If A starts jogging at a speed twice his walking speed, he takes 2 hours less than B. Find the speed of A.