Sam takes the bus 4/7 of the distance from home to school. He then walks one block to his friends house and rides with the friend the remaining five blocks to school. What fractional part of the trip did he ride with his friend