A ball is thrown with a speed of 40 m/s on elevation angle 30 from the horizontal ground. Find its time of flight.