The maximum(or minimum) of a parabolic function would be it's vertex.
To find the vertex use the formula x = -b/(2a), after finding x, plug x back into the function to find y.
The function needs to be in standard form ax^2 + bx + c, so
a = -16, b = 40
x = -40/(2*-16) = 1.25
y = -16(1.25)^2 + 40(1.25) + 10
y = -25 + 50 +10
y = 35
The maximum height is the y value of the vertex. 35 feet is the answer.