If the rocket had zero speed at ignition and 30 m/s at burnout, and the acceleration was constant throughout the burn, then its average speed over the duration was 15 m/s .
Time = (total distance covered) / (average speed)
Time = (49 m) / (15 m/s)
Time = 3.27 seconds