Scott runs 3km in 30 minutes and then rests for 15 minutes. He then runs 2 km in 15 minutes. What was Scott's average speed?