In Fig. 9-59, block 1 of mass $m_{1}$ slides from rest along a frictionless ramp from height $h=3.00 \mathrm{~m}$ and then collides with stationary block 2 , which has mass $m_{2}=2.00 m_{1}$. After the collision, block 2 slides into a region where the coefficient of kinetic friction $\mu_{k}$ is $0.450$ and comes to a stop in distance $d$ within that region. What is the value of distance $d$ if the collision is (a) elastic and (b) completely inelastic?