Average acceleration = (change in speed) / (time for the change)
If a ball is thrown upwards at a speed of 20 m/s, and reaches the top of its arc with zero speed after 3.5 seconds, then its average acceleration is
(0 - 20 m/s) / (3.5 s) =
(-20 m/s) / (3.5 s) =
-5.71 m/s² .
Note: This could not be happening on Earth, and there's no planet or other body in our solar system with a gravitational acceleration anywhere near that number.