In a race, a car travelled at a speed of 150 kmph. If it had travelled at 180 kmph, it would have completed the race before 3 minutes. Find the length of the track.
A. 50 km
B. 45 km
C. 40 km
D. 30 km