Distance/Speed =. Time
Since they are both traveling for the same time, this can be solved as a proportion:
(Bicycle distance / Bicycle speed). =. (Car distance / Car speed)
(40 / 4). = (Car distance / 30)
10. =. (car distance / 30)
Car distance. =. 300