Suppose, you had a rifle of mass
so,we can write,
negative sign means the rifle will move in the opposite direction of the bullet, and as
so,that's how their mass affected their velocities.
But as the bullet will go through air before hitting something it's retardation will occur based on air resistance.
Whereas the rifle will move very little and almost no acceleration because it's so heavy.