A ball $A$ of mass $2m$ is at the top of a frictionless chute at height $5h$ above the ground and another ball $B$ of mass $m$ is at rest on the horizontal surface at the end of the chute at height $h$ above the ground. Ball $A$ starts to slide from rest down the chute and hits ball $B$ which is projected, after the impact, off the end of the chute. If the coefficient of restitution between the balls is $0.5$, how far does ball $B$ go horizontally before it hits the ground?