Question

so i have this problem on my homework and i cant seem to figure it out. could you help?You are driving home from school steadily at 99 km/h for 170 km . It then begins to rain and you slow to 61 km/h

instantly. You arrive home after driving 4.0 hours. what is the average speed? and hoe far is your home from school?