First we have to answers stand that speed is equivalent to the distance traveled in a certain time span. That is speed = distance/time. Conversely, time = distance/speed. We are asked to find the speed going home given, distance, total time and speed going to school. We can answer this equation by adding the time Aidan is spending going and coming back from school
t = (distance to school)/(speed to school) + (distance to home)/(speed to home)
1hour = (16)/(40) + (16)/(speed to home)
Speed to home = 26.67miles/hour