Bob A swings down and, at the lowest point of its path, hits bob B head-on while moving horizontally with some speed v.
For a head-on elastic collision in which the target is at rest, the velocities after the collision are
vA′=mA+mBmA−mBv,vB′=mA+mB2mAv
Here mA=mB=m, so
vA′=0,vB′=v
The two bobs simply exchange velocities: bob A comes to rest at the lowest point and bob B moves off along the table with A's speed. Since A has no kinetic energy left after the collision, it cannot rise at all.
Bob A does not rise after the collision (height = 0).