Calculate the height of a cliff if it takes 2.35 s for a rock to hit the ground

(a) Calculate the height of a cliff if it takes 2.35 s for a rock to hit the ground when it is thrown straight up from the cliff with an initial velocity of 8.00 m/s.
(b) How long a time would it take to reach the ground if it is thrown straight down with the same speed?