A)
The maximum of a function can be by found equating its first derivative to 0.
dh/dt = -32t + 40
0 = -32t + 40
t = 1.25 seconds
B)
The maximum height is found by plugging the value of t from part A into the original equation:
h = -16(1.25)² + 40(1.25) + 6
h = 31 feet