Rahul walks to his school which is at a distance of 3km from his home in 30 minutes.on reaching he finds that the school is closed and cones back by a bicycle with his friend and reaches home in 20 minutes. Calculate his average speed in km/hr.