While walking from her house to school, Miriam walks at a pace of 5 km/h. When she walks in the hallways at school, she slows down to 3 ½ km/h. If she spent 2 ½ hours walking to and from school and ¾ of an hour walking in the hallways, what was her average walking speed?