Answer:

Step-by-step explanation:
The total momentum of the system must conserve by the law of momentum conservation.
( 1 )
If you consider the shock between the ball and the truck as totally elastic, and also if the truck is much more massive than the ball, you can assume that the truck does not move when the ball hits it.
Then the truck is always at rest
Hence, you have in the expression ( 1 ):
