A train 175 m long is travelling at a speed of 54 km/h and a man on the road parallel to the railway track is cycling at a speed of 9 km/h. Find the time the train will take to pass the man if they are moving : (i) in the opposite direction. (ii) in the same direction.