A pitcher throws a 0.107-kg baseball, and it approaches the bat at a speed of 31.7 m/s. The bat does 77.9 J of work on the ball in hitting it. Ignoring air resistance, determine the speed of the ball after the ball leaves the bat and is 22.7 m above the point of impact.