Train X moves at an uniform speed from Powersdale to Quicksville; two stations 240 kilometers apart. Train Y starts from Powersdale precisely one hour after Train X departed (also from Powersdale) and, after two hours, comes to a point that Train X had passed 45 minutes previously.
Train Y now increases its speed by 5 kilometers per hour and it overtakes Train X as soon it reaches Quicksville.
Determine the original speed of both the trains.