A car travels a distance of 100 km. For the first 30 minutes it is driven at a constant speed of 80 km/hr. The motor begins to vibrate and the driver reduces the speed to 40 km/hr for the rest of the trip. The average speed for the entire trip is ( )