According to law of conservation of momentum we have,
Where,
Substituting these values in the above equation,
V2f is what we need to find out
Simplifying the above equation,
which implies
Which gives us
i.e. The velocity of the ball after the collision is 3 m/s