When we consider both body and trolley to be our system, the net external force acting on the system is zero. So, we can conserve momentum of the system.
Let the boy and trolley move with common velocity v.
Momentum of the system just before the jump = Momentum of the system just after the jump
⇒50×5+20×1.5=(50+20)×v
⇒250+30=70v
⇒280=70v
⇒v=4 m/s
So, the common velocity is 4 m/s.