A baseball is hit from an initial height of 3 feet. The baseball reaches its maximum height of 81 feet when it is 156 feet from home plate. Write a quadratic function to represent the height of the baseball as a function of its distance from the home plate.