Momentum of a body is the product of its mass and velocity i.e.
p=mv
and the rate of change of momentum of a body is equal to the force applied i.e.
F=m(v-u)t
In the given information, both the balls move with same velocity and finally stops, thus force applied to stop the ball will be directly proportional to the mass of the ball.
F∝m
As the mass of cricket ball is greater than the tennis ball, its momentum will be more than the tennis ball. Thus, greater force will be required to stop the cricket ball as compared to that of tennis ball.