I found 6s and 46m
The ball starts with initial velocity vi=30m/s and it reaches maximum height where the velocity will be zero, vf=0 During the upwards bit the acceleration of gravity g=9.8m/s2 is slowing it down up to the maximum height where the ball finally stops;
You can say that the final velocity depends upon the initial velocity AND the contribution of the acceleration that operates for a certain time t, or:
vf=vi+at
in our case:
0=30−9.8t the acceleration is negative because it is directed downwards (see the diagram).