A bullet is fired from a rifle, emerging at 340 m/s. It strikes a sandbag some distance away, having lost 10% of its velocity due to air resistance. if it penetrates the sandbag to a depth of 12 meters, how long did it take for the bullet to come to rest in the bag?