Use the following information to answer questions 26-29.
The top view and side view of a 40-foot-long swimming pool are shown in the figure below. All dimensions given are in feet.
The top view shows the top rectangular surface of the pool and the surrounding rectangular patio. All 4 walls of the pool are vertical and perpendicular to the top surface. The side view shows a cross section along the length of the pool. All cross sections parallel to the side view are congruent. The shallow end has a constant depth of 4 ft. The deep end has a constant depth of 9 ft. A rectangular surface connects the shallow and deep ends.
27. Johann put up a fence along the outer edge of the patio. Given that the materials for the fence cost $12 per foot, what was the total cost of the materials for the fence?