A train stops at two stations P and Q which are 2 km apart, It accelerates uniformly from P at 1ms2 for 15 seconds and maintains a constant speed for a time before decelerating uniformly to rest at Q. If the deceleration is 0.5ms2, find the time for which the train is travelling at a constant speed.