The total displacement for the bike ride of Johnny is ' 0 km'. This total displacement is determined my calculating the difference between the initial point (starting point) and the final point (finishing point). Since, Johnny started from his home and came back to his home, the total distance between these points is 0. Hence, the displacement is zero.
His friend's house can be used as a reference point to determine Johnny's motion during his bike ride. As Johnny will keep moving on his bike, the distance from his friend's house will keep on decreasing. And he will come back to his house, the distance between his friend's house and his bike will keep on increasing.