Let W = number of white cars, and Y = number of yellow cars.
There were 9 times as many white cars as yellow cars. This means that the number of white cars was 9 times more than the number of yellow cars. This can be translated by the expression:
9Y = W
The person counted 40 cars in total:
W + Y = 40
So we get the system:

In the first equation, we multiply by 9:
9W + 9Y = 360
In the second equation:
9Y= W
W-9Y = 0
Then we add the first with the second equation:
9W + 9Y + W - 9Y = 360
10 W = 360
W = 36
So He counted 36 white cars.
Hope this Helps! :)
I wrote it out on paper and uploaded the answer for you. Let me know if you have any questions.
Answer:
Distance = (Average speed) * Time = 80 km/h * (3 hours 45 minutes) = 80 km * 3 3/4 hours = 300 kilometers.
Step-by-step explanation: