The problem says that the brick path is to be built along each side of a rectangular flower garden, but the flower garden is bordered on one side by a house, so the brick path will be along three sides of the garden.
The area of the retangular garden is:
A:Lenght x Widht
Widht=W
Lenght (L)=2W (The lenght is twice the widht of the rectangle).
The total lenght (Lt) will include the widht of the brick path (2 ft at each side), as you can see below:
Lt=2W+2+2
Lt=2W+4
Then, the area of the path is represented as below:
A= (W x 2sides x 2ft)+Lt
A=4W+2(2W+4)
A=4W+4W+8
A=8W+8
A=8(W+1)