From the law of the conservation of momentum, the equation of the velocity of the other rock can be expressed as-
Here, and are the mass of the first and the second rock before the collision and and are the velocities of the first and the second rock before the collision, and are the masses of the first and the second rock after the collision and and are the velocities of the first and the second rock after the collision.
Substituting the values in the above equation, we get-
role="math" localid="1658130167025"
Thus, the velocity of the other rock, whose mass is is .