According to the law of conservation of momentum, the total momentum of an isolated system is constant.
what is an isolated system for conservation of momentum?