The problem is actually easier than it sounds.
You have done the hard part, which is to figure out the amount of time that passes from the instant when the fronts of the train meet until the instant when the backs of the trains meet.
Now suppose that at the instant when the fronts of the trains meet, we plant a flag in the ground alongside the tracks at the place where that event occurred, and a little later, when the backs of the trains meet, we plant another flag in the ground alongside the tracks at the place where that event occurred. The question is asking about the distance between the flags.
At the instant you plant the first flag, the front of each train is also at that point along the tracks. You know how far away the back of the first train is at that time, how fast it is moving toward you, and how much time elapses until you must plant the second flag. Now use that information to figure out where the back of the first train is when you plant the second flag, and that will tell you where the second flag will be.
You can check your work by using the information you have about the second train to figure out where the back of that train will be at the instant the second flag is planted. It should be at the same point!