A ball is thrown across a playing field. Its path is given by the equation y= -0.005x^2 +x +5, where x is the distance the ball has traveled horizontally, and y is its height above ground level, both measured in feet.
a. What is the maximum height attained by the ball?
b. How far has it traveled horizontally when it hits the ground?