A rope 10 feet long is cut into two pieces. One piece is used to form a circle and the other used to form a square. Find a function representing the area of both square and circle as a function of the length of one side of the square.