A ball is thrown across playing field. Its path is given by 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?