You drive your car at a speed 40km/h for 1 hour, then slow down to 30km/h for the next 20km. How far did you drive, and what was your average speed?