(d) If it is a completely inelastic collision then
$m_{1}v_{1} + m_{2}v_{2} = m_{1}v + m_{2}v$
$\ v = \frac{m_{1}v_{1} + m_{2}v_{2}}{m_{1} + m_{2}}\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \underset{\mathbf{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ v}_{\mathbf{1}}}{\overset{\mathbf{m}_{\mathbf{1}}\mathbf{\ \ \ \ \ \ \ \ \ }}{\rightarrow}}\underset{\mathbf{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ v}_{\mathbf{2}}}{\overset{\mathbf{m}_{\mathbf{2}}\mathbf{\ \ \ \ \ \ \ \ \ }}{\rightarrow}}$
$KE = \frac{p_{1}^{2}}{2m_{1}} + \frac{p_{2}^{2}}{2m_{2}}$
As $p_{1}\ and\ p_{2}$ both simultaneously cannot be zero therefore total KE cannot lost.