In the arrangements shown in figure,masses of each ball are 1 kg and mass of trolley is 4 kg. In the figure shell of mass 1 kg moving horizontally with velocity v = 6 m/sec collides with the ball and get stuck to it .It's maximum deflection of the thread (length 1.5 m) with vertical is:
Conserving the momentum of two balls before and after collision in horizontal direction
1×6 = (1 + 1)×v
v = 3m/sec
Now at the instant of maximum deflection ball will be moving horizontal with same speed as of trolley (i.e., velocity of ball w.r.t. trolley will be 0).
Let it be v0
2×3 = (4 + 2)×v0
Now conserving energy
{12×2×32}−{2×10×1.5(1−cosθ)}={12×2×v2}+{12×4×v2}