So (35-5)×(2v-30)=35v gives: v=36 (m/min).
So the speed of A is 42 meters per minute.
The distance between a and b is 42× 30 = 1260m.