A 3.1 kilogram gun initially at rest is free to move. When a 0.015-kilogram bullet leaves the gun with a speed of 500. meters per second, what is the speed of the gun?