Given 2 particles with velocity components as shown.
In elastic collision linear momentum in the and directions holds
In addition, kinetic energy is constant. Let , , then
We have 3 equations above, but 4 unknowns . The 4th equation comes from knowing that after collision, particles will travel at trajectories.