Elastic collision in two dimensions :- Consider a particle of mass m1 moving along x-axis with initial velocity u1 collides with another particle of mass m2 at rest. After, collision, let the mass m1 moves with velocity v1 at an angle θ1 w.r.t. the original path (i.e., x-axis) and particle m2 moves with velocity v2 at an angle θ2 with respect to the horizontal direction (i.e., x-axis).
According to the law of conservation of linear momentum
m1 vector n1 + 0 = m1 vector v1 + m2 vector v2
or, m1 vector u1 = m1 vector v1 + m2 vector v2 ...(i)
The x-component of equation (i) gives:
m1u1 = m1v1 cosθ1 + m2v2 cosθ2 ...(ii)

and y-component of equation (i) gives
0 = m1v1 sinθ1 - m2v2 sinθ2 ...(iii)
As the collision is elastic, so kinetic energy is also conserved.
i.e., 1/2 m1u12 = 1/2 m1v12 + 1/2 m2v22 ...(iv)
Assume that m1, m2 and u1, are known. Now, the motion after collision involves four unknown quantities, i.e., v1, v2, θ1 and θ2. To evaluate these four quantities, we need four equations. But, we have only three equations (ii) to (iv). So, we cannot determine these four quantities. So, let θ1 be also known, then v1, v2 and θ2 and can be calculated.