A piece of wire 18 m long is cut into two pieces, the length of the first piece being x m. The first piece is bent into a circle, and the other is bent into a rectangle with length twice the width. Give an expression for the total area A enclosed in the two shapes in terms of x.