Solve multi-step kinematics problems involving displacement, velocity, acceleration, and free fall
A train starts from rest and accelerates uniformly at 2 m/s for 10 s, then travels at constant velocity for 20 s, and finally decelerates at 4 m/s until it stops. What is the total distance traveled?