As the trolley carrying the sand bag moving uniformly, therefore, external force on system = zero. - 1
When the sand leaks out, it does not lead to application of any external force on the trolley. Hence, the speed the trolley shall not change. So, speed will remain same
speed = 27 km/h.