the total distance travelled before the ball comes to rest is