the area of the rectangular garden is 289 square ft
so
so the value of y is 289/x
the outer perimeter of the garden is 2(x+y)
now perimeter is 2(x+289/x)
it is given that the outer wall cost 22 $ per linear foot
so the total cost is
it is given that the cost of an interior wall is 9 $
and the length of the interior wall is x
the total cost of the interior wall is 9x
so the total cost of the wall is 9x +22 (2x + 578/x).
and the correct answer is 9x +22 (2x + 578/x). option B.