Assuming no forces external to the two objects, the momentum is conserved in the collision:
mBvBBef = mPvPaff + mBvBaft where B = Ball, P=Pin and the velocities are before and after the collision.
You know everything but vBaft. Solve.
Please consider a tutor.