Let the distance Abdul commutes while driving from home to school =s
Let us assume time taken by Abdul to commute this distance =t1
Distance Abdul commutes while driving back from school to home =s
Let us assume time taken by Abdul to commute this distance =t2
Average speed from home to school v1avg=20 kmph
Average speed from school to home v2avg=40 kmph
We know, time=distancespeed
Therefore, time taken from home to school t1=sv1avg=s20
Similarly, time taken from school to home t2=sv2avg=s40
Total distance from home to school and backward =2s
Total time taken from home to school and backward T=t1+t2=s20+s40
Therefore, average speed(vavg) for covering total distance 2s,vavg=Total DistanceTotal Time
=2ss20+s40
=26.67 kmph