As per momentum conservation we can say that Chuck and ball as a system has no external force
So here momentum of them must be conserved
now here initially if they are at rest
so we can say
[tex]P_i = P_f[/tex]
[tex]0 = m_{cart}v_c + m_{ball} v_b [/tex]
now we have
[tex]v_b = \frac{m_{cart}v_c}{m_{ball}[/tex]
now the relative velocity of the cart and ball is given as
[tex]v_r = v_c + \frac{m_{cart}v_c}{m_{ball}[/tex]
also we can say since they are moving in opposite direction so relative speed will be
[tex]v_r = v_c + v_b[/tex]