A passenger train and freight train start from the same time and travel in opposite directions. The passenger train traveled 3 times as fast as the freight train. In 5 hours, they were 360 miles apart. Find the rate of each train.