Daniel B. answered 01/05/21
A retired computer professional to teach math, physics
Let v be the velocity of the pair after the collision.
By conservation of momentum, the vector sum of the two momenta, m1v1 and m2v2,
is the vector (m1+m2)v.
The projection of (m1+m2)v on the y-axis must equal the original m1v1, and
the projection of the (m1+m2)v on the x-axis must equal the original m2v2.
From those two equations we can calculate θ.
(m1+m2)v sin(θ) = m1v1
(m1+m2)v cos(θ) = m2v2
Divide the first equation by the second:
tan(θ) = (m1v1)/(m2v2)
θ = arctan((m1v1)/(m2v2))