A square patio had the same number of feet added to its length and width. The equation A(x)=x ^2 +18x+81 represents the area of the new patio in square feet, where was the length and width of the original patio, in feet. How many feet were added to the length and width of the patio?