For this, use the following vertical motion formula:
h = -16t² + vt + s  where:
h = the height of the object at any given point in time
t = time the object is in motion (in seconds)
s = the initial height from which the ball was dropped or launched
v = the initial velocity
Our given information:  s = 20 ft  and v = 5 ft/sec
So our function would be :  h(t) = -16t² + 5t + 20