Let the distance between home and school =Skm time consumed to reach school from home =xS hr. time consumed to reach home from school =S/yhr.
Average speed = timeconsume to covered total distance total covered distance =xS+ySS+S=x1+y12=x+y2xykm/hr