Here the momentum of the system will remain conserved as no external forces are involved.
Total momentum before the boy jumps on the trolley =
Let the common velocity of the boy and the trolley is 'vCommon'.
Total momentum after the boy jumps on the trolley =
Accordding to momentum conservation, Initial momentum = Final momentum