A train is moving along a straight line with a constant acceleration a. A boy standing in the train throws a ball upwards with a speed of 10 m/s at an angle 30∘ to the horizontal. The boy has to move forward by 5 m inside the train to catch the ball back at its initial height. The acceleration of the train in m/s2 is: