From the law of conservation of momentum we know that, m1u1+m2u2+….=m1v1+m2v2+…. Given m1=m,m2=2 m and m3=3 m and u1=3u,u2=2u and u3=u Let the velocity when they stick =v Then, according to question, 
m×3u(i^)+2m×2u(−i^cos60∘−j^sin60∘)+3 m×u(−i^cos60∘+j^sin60∘)=(m+2 m+3 m)v⇒3mui^−4mu2i^−4mu(23j^)−3mu2i^+3mu(23j^)=6 mv⇒mui^−23mui^−23mj^=6 mv⇒−21mui^−23muj^=6 mv⇒v=12u(−i^−3j^)