momentum = m*v
here m= mass of the object, and v= velocity of the object
so when a tennis player hits a ball with a racket. racket hits the ball and ball gains a velocity v just after hitting.
this starting velocity v is used for the momentum of the ball. the ball can have non-uniform motion after it does not matter.
we take the velocity of ball v just after rocket hits the ball to find the momentum of the ball.
(If you have any more doubts. Please make a fresh request.)