(d) When trolley are released then they possess same linear momentum but in opposite direction. Kinetic energy acquired by any trolley will dissipate against friction
$\therefore\mu\ mg\ s = \frac{P^{2}}{2m} \Rightarrow s \propto 1/m^{2}$ [As $P\ $and$\ u$ are constants]
$\Rightarrow \frac{s_{1}}{s_{2}} = \left( \frac{m_{2}}{m_{1}} \right)^{2} = \left( \frac{3}{1} \right)^{2} = \frac{9}{1}$