Question 1195250
.


At given perimeter, a rectangle having maximum area is a square with the side length 

equal to one fourth  (1/4)  of the given perimeter.



It is a classic problem on finding optimal dimensions.


This problem was solved  MANY  TIMES  in this forum.


Therefore,  I created lessons at this site,  explaining the solution in all details.


The lessons are under these links

&nbsp;&nbsp;&nbsp;&nbsp;- <A HREF=https://www.algebra.com/algebra/homework/quadratic/lessons/A-rectangle-with-the-given-perimeter-which-has-the-maximal-area-is-a-square.lesson>A rectangle with a given perimeter which has the maximal area is a square</A>

&nbsp;&nbsp;&nbsp;&nbsp;- <A HREF=https://www.algebra.com/algebra/homework/quadratic/lessons/A-farmer-planning-to-fence-a-rectangular-garden-to-enclose-the-maximal-area.lesson>A farmer planning to fence a rectangular garden to enclose the maximal area</A>


Read these lessons attentively.

Consider them as your &nbsp;TEMPLATE.

Having these templates in front of you, &nbsp;solve the &nbsp;GIVEN &nbsp;problem by the same way.


Having it written once as a lesson in compact and clear form,

I do not see any reasons to re-write it again and again with each new given input data set.


By the way, &nbsp;in these lessons, &nbsp;you will find many useful links to accompanied lessons.

Do not miss them.


Consider my lessons as your textbook, &nbsp;handbook, &nbsp;tutorial and &nbsp;(free of charge) &nbsp;home teacher.



In your case, &nbsp;the maximum fenced area is 4 m^2, provided by a square with the side length of &nbsp;8/4 = 2 &nbsp;meters.