This is a perfectly inelastic collision, where both bodies stick together after collision.
Using conservation of linear momentum:
\[
\text{Initial momentum} = m \cdot v + m \cdot (-v) = mv - mv = 0
\]
\[
\text{Final momentum} = (m + m)V = 2mV
\Rightarrow 2mV = 0 \Rightarrow V = 0
\]
So, the velocity of the compound body after the collision is zero.