A body of mass 12kg traveling at 4.2ms-1 collides with a second body of mass…