Three students $A, B$ and $C$ are traveling from a location on the National Highway No.$5$ on direction to Hanoi for participating the HOMC $2018$. At beginning, $A$ takes $B$ on the motocycle, and at the same time $C$ rides the bicycle. After one hour and a half, $B$ switches to a bicycle and immediately continues the trip to Hanoi, while $A$ returns to pick up $C$. Upon meeting, $C$ continues the travel on the motocycle to Hanoi with $A$. Finally, all three students arrive in Hanoi at the same time. Suppose that the average speed of the motocycle is $50$ km per hour and of the both bicycles are $10$ km per hour. Find the distance from the starting point to Hanoi.