A train travels at a speed of 30 km per hour and travel a distance of 240 km. how long did it take the train to complete its journey? ​