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