Two friends A and B are 30 km apart and they start simultaneously on motorcycles to meet each other. The speed of A is 3 times that of B. The distance between them decreases at the rate of 2 km per minute. Ten minutes after they start A's vehicle breaks down and A stops and waits for B to arrive. How much time after A started riding does B meet A ?