A subway train starts from rest at a station and accelerates at the rate of 2.0m/s^2 for 10s. It runs at a constant speed for 30s, and then decelerates at 2.4m/s^2 until it stops at the next station.
Find the total distance between the stations and the average speed of the train.