Total cars $$ = 240$$
Ratio of red cars to blue cars = 3:5
Let the number of red cars be \(3x\) and the number of blue cars be \(5x\).
Therefore,
$$\Rightarrow \ 3x + 5x = 240$$
$$\Rightarrow \ 8x = 240$$
$$\Rightarrow \ x = \frac{240}{8} = 30$$
Hence,
$$Number \ of \ red \ cars = 3x = 3 \times 30 = 90$$
$$Number \ of \ blue \ cars = 5x = 5 \times 30 = 150$$