How far were these two cars from each other when both of them stopped at last?
Two cars started from a particular spot. The car A ran straight at the speed of 30 kmph for 2 kmph for 2 hours north and then took a right turn. It ran 40 km and again turned right. It stopped after 30 km. The car B ran straight towards east at the speed of 20 kmph for 2 hours and turned left. It ran for 10 km and then stopped. How far were these two cars from each other when both of them stopped at last?
(a) 17 km
(b) 18 km
(c) 19 km
(d) 20 km