Let the distance between the school and the house is x km
Speed of the boy from house to school =20 km/hr.
Using formula, Time taken =distancespeed.
So, time taken =x20 hours.
Also,Speed of the boy from school to the house =30 km/hr
So, time taken =x30 hours.
Total time taken =x20+x30=x12hours
Also total distance covered by boy =x+x=2x km.
Using formula,
Average speed =TotaldistanceTotaltime=2xx12=24 km/hr.
Thus, average speed of the boy's journey is 24 km/hr.