Teacher:The task is to generate the correct answer for a given math problem.
Teacher: Now, understand the problem? Solve this instance: Problem: a train traveled the first d miles of its journey it an average speed of 50 miles per hour , the next d miles of its journey at an average speed of y miles per hour , and the final d miles of its journey at an average speed of 160 miles per hour . if the train ' s average speed over the total distance was 96 miles per hour , what is the value of y ?
Student:
16