We know that in perfectly elastic head on collision, when two equal masses collide with each other, then they exchange their speeds.
In the present case, bob A is moving with certain speed and bob B is at rest. Hence after collision, bob A comes to rest and the bob B starts moving with the speed of the bob A. The bob A transfers whole of its momentum to bob B and hence bob A, will not rise at all after the collision.