David drove 580 km on 7 hour journey. on the city roads he drove 60km/h and on the he drove 100km/h. How long did he drive at each rate?​