A boy of mass m boards s trolley of mass 2m moving with a constant speed u along a horizontal track. Neglecting friction, if the boy jumps vertically up with respect to trolley to catch hold of a branch of a three, the speed of the trolley after the body has jumped off is :