31-32 Train in an elevated track and car in perpendicular road

Problem 31
An elevated train on a track 30 ft above the ground crosses a street at the rate of 20 ft/sec at the instant that a car, approaching at the rate of 30 ft/sec, is 40 ft up the street. Find how fast the train and the car separating 1 second later.