Final answer:
The height of the building is given by the constant term in the equation of the ball's height, which is 40 meters.
Step-by-step explanation:
The question asks for the height of the building from which the ball is shot into the air. The height is given by the equation h = -5t2 + 10t + 40, where h is the height in meters after time t seconds. To find the height of the building, we look at the constant term in the equation, which represents the initial height of the ball because it's the value of h when t equals 0. In this case, the constant is 40 meters, hence the building is 40 meters tall.