Set up a coordinate system and define your velocities with respect to that system.It is usually convenient to have the x axis coincide with one of the initial velocities.
In your sketch of the coordinate system, draw and label all velocity vectors and include all the given information.
Write expressions for the x and y components of the momentum of each object before and after the collision. Remember to include the appropriate signs for the components of the velocity vectors.
Write expressions for the total momentum in the x direction before and after
the collision and equate the two. Repeat this procedure for the total momentum
in the y direction. These steps follow from the fact that, because the momentum of the system is conserved in any collision(law on conservation of linear momentum), the total momentum along any direction must also be constant. Remember, it is the momentum of the system that is constant, not the momentan of the individual objects.
If the collision is inelastic, kinetic energy is not conserved, and additional information is probably required. If the collision is perfectly inelastic, the final velocities of the two objects are equal. Solve the momentum equations for the unknown quantities.
If the collision is elastic, kinetic energy is conserved, and you can equate the
total kinetic energy before the collision to the total kinetic energy after the
collision to get an additional relationship between the velocities.And you can solve the energy and momentum equation to find out the find velocities.
Centre of mass can be useful feature in solving the momentum problems