There is no data about acceleration or time, so those equations don't make sense. But since you and your friend are both on the train, the ball appears to be going 30 miles an hour in the frame of reference of your friend. And in the frame of reference of the person in the station it is going...