An ambulance traveled on roads from the hospital 14 kilometers east, then 16 kilometers north to reach an accident. If the ambulance traveled for 0.40 hours, what was its average speed?