A car travels $8$ km in the first quarter of an hour, $6$ km  in the second quarter and $16$ km in the third quarter. The average speed of the car in km per hour over the entire journey is
1. $30$
2. $36$
3. $40$
4. $24$