Solution :
In the question, it is given that the collision is inelastic and the blocks stick together.
In an inelastic collision, the linear momentum is conserved but the kinetic energy is not conserved.
The linear momentum is given by :
[tex]$\vec p = m \vec v$[/tex] (mass x velocity)
So according to the conservation of linear momentum,
[tex]$\vec p_{(\text{before collision})}=\vec p_{(\text{after collision})}$[/tex]
Let the velocity after the collision is [tex]$v_F$[/tex]
[tex]$m_1v_0+m_2 \times 0 = m_1v_F+m_2v_F$[/tex]
Putting the values of [tex]$m_1 \text{ and}\ m_2$[/tex]
[tex]$m_1=2M \text{ and}\ m_2=M$[/tex]
∴ [tex]$2Mv_0=2Mv_F+Mv_F$[/tex], as the blocks stick together after the collision.
and [tex]$2MV_0=3Mv_F$[/tex], as the blocks stick together after the collision.