Length of the train is equal to the distance covered by train to cross the pole. So, we will find the distance traveled by the train in 7 seconds by applying the following formula:
Distance= Speed x Time
Speed is given in Km/hr so we will convert it into m/s as answers are given in meters.