Initial momentum of ball A : 2 kg x 1 m/s = 2 kg m/s
Initial momentum of ball B : 1 kg x 2 m/s = 2 kg m/s
Final momentum of both the balls = 0 (as final velocity is zero)
Hence, change in momentum of both the balls is same. But the amount of hurt depends on the force, not on the change of momentum.
And we know that, Force is rate of change of momentum. So, time to stop the ball is required to know the answer which is not provided in the question. Hence answer can not be determined.