A train after travelling 150 km, meets with an accident and then proceeds at 35 of its former speed and arrives at its destination 8 hours late. Had the accident occurred 360 km further, it would have reached the destination 4 hours late. What is the total distance travelled by the train?