A train completed a 400-mile journey in two stages. For the first hours, the train traveled at an average speed of miles per hour. For the remaining hours, it traveled at an average speed of miles per hour. If the total time for the journey was 6 hours, and the time spent on the second stage was half the time spent on the first stage, what is the value of ?