Explanation:
the area function for the square pool itself is
A(x) = x² ft²
the area function for the pool and its sidewalk is
A(x) = (x + 6)² = x² + 12x + 36 ft²
simply because in this case the side length of the square is x+3+3 ft long (3ft added on both edges).