The potential energy of a body is the maximum at the highest position of that body. So for example, if the maximum position of the ball is at 3 m, there will be the maximum potential energy.
To get the half of the maximum potential energy, the ball should be at the half of the maximum position, which is 1.5 m.