A train takes 5mins to cover a distance of 3km between two stations P and Q. Starting from rest at P, it accelerates at a constant rate to a speed of 40km per hour and maintains this speed until it is uniformly brought to rest at Q. If the train takes three times as long to deacceleate as it does to accelerate, find the time taking by the train to accelerate