For an isolated system, the law of conservation of momentum is valid: A. for inelastic collisions. B. for elastic collisions. C. only when there are no collisions. D. for all types of collisions.