A rectangular prism must have a base with an area of no more than 27 square meters. The width of the base must be 9 meters less than the height of the prism. The length of the base must be 6 meters more than the width of the base. Find the maximum height of the prism.