I presume you simply mean find the kinetic energy of particle m2 after the collision.

where is the velocity of m1 before the collision and are the final velocities.

Solve the momentum equation for and plug it into the energy equation. After a few steps:

Solve this for . Hint: Use the quadratic formula.

So use this to find and find .

-Dan