Hello
The bullet is moving by uniformly accelerated motion.
The initial velocity is

, the final velocity is

, and the total time of the motion is

, so the acceleration is given by
where the negative sign means that is a deceleration.
Therefore we can calculate the total distance covered by the bullet in its motion using

So, the bullet penetrates the sandbag 1.8 meters.