At the time the cannonball reaches the ground, the vertical height of the cannonball from the ground is 0, i.e. h = 0.
Thus, the time it will take the cannonball to reach the ground is given by

Therefore, it will take the cannonball 8 seconds to reach the ground.