A train starts at rest, accelerates with constant acceleration a for 5 minutes, then travels at constant speed for another 5 minutes, and then decelerates with a. Suppose it travels a distance of 10km in all. Find a?