´To develop this problem we will use the concepts related to the conservation of momentum and the application of energy conservation equations to find the velocity of the mass after the collision, like this:
Velocity of the mass [tex]m_1[/tex] just before the collision
[tex]v_1 = \sqrt{2gh}[/tex]
[tex]v_1 = \sqrt{2(9.8)(3)}[/tex]
[tex]v_1 = 7.67m/s[/tex]
Therefore the momentum just before collision would be
[tex]p_2 = m_1v_1+40(0)\\p_1 = 20*7.67+40(0)\\p_1 = 153.36kg \cdot m/s[/tex]
Momentum after the collision
[tex]p_1 = 20*u_1+40u_1\\p_1 = 60u_1[/tex]
Since the momentum is conserved we have that
[tex]153.36= 60u_1[/tex]
[tex]u_1 = \frac{153.36}{60}[/tex]
[tex]u_1 = 2.56m/s[/tex]
The velocity of mass [tex]m_2[/tex] after the collision is given by
[tex]v_2 = \frac{2m_1}{m_1+m_2} u_1[/tex]
[tex]v_2 = \frac{2(20)}{20+40}(2.56)[/tex]
[tex]v_2 = 1.71m/s[/tex]
Therefore the change in momentum of mass 2 is
[tex]p_2 = m_2v_2[/tex]
[tex]p_2 = 40*1.71[/tex]
[tex]p_2 = 68.4kg\cdot m/s[/tex]
Therefore the impulse acting on m2 during the collision between the two boxes is [tex]p = 68.4kg\cdot m/s[/tex]