Answer :
Case I: While driving to school
Average speed of Abdul's trip =20 km/h
Average speed
=Total time takenTotal distance
Total distance = Distance travelled to reach school =d
Let total time taken =t1
20=t1d
t1=20d...(i)
Case II: While returning from school
Total distance = Distance travelled while returning from school =d
Now, total time taken =t2
40=t2d
t2=40d...(ii)
Average speed for Abdul's trip
=Total time takenTotal distance covered in the trip
Total distance covered in the trip
=d+d=2d
Total time taken
=t1+t2
∴Average speed=t1+t22d
From equations (i) and (ii),
=20d+40d2d
=402d+d2d
=403d2d
=380
=26.67 km/h