Half distence on the path traveling up in the air.
Explanation:
When the ball is on thr ground there and not moving there is no potential energy or kinetic energy, when the ball is tossed into the air it will reach maximum height which is determined by how much kinetic energy it has (air resistence is important however) when the ball reaches its velocitu is 0 and all of the energy in the system is potential energy, as the ball falls to the ground that potential energy is converted to kinetic energy