document.write( "Question 1048872: If a farmer had 40 meters of fencing and he plans to use it to make a rectangle cow pen.what is all the possible lengths and breadths he could choose - keeping to a whole number of metres.
\n" ); document.write( "Which possibility gives the farmer the greatest area?
\n" ); document.write( "

Algebra.Com's Answer #664555 by Fombitz(32388)\"\" \"About 
You can put this solution on YOUR website!
So you know that the perimeter of the rectangle has to equal the amount of fencing,
\n" ); document.write( "\"2W%2B2L=40\"
\n" ); document.write( "\"W%2BL=20\"
\n" ); document.write( "and you know that the area of a rectangle is,
\n" ); document.write( "\"A=W%2AL\"
\n" ); document.write( "So set up a procedure to create a list of values, choose \"W\", solve for \"L\", calculate the area, \"A\".
\n" ); document.write( "You know that \"W\" and \"L\" have to be non-zero and whole numbers so,
\n" ); document.write( "\"W=1\"
\n" ); document.write( "\"1%2BL=20\"
\n" ); document.write( "\"L=19\"
\n" ); document.write( "\"A=1%2A19=19\"
\n" ); document.write( "\"W=1\",\"L=19\",\"A=19\"
\n" ); document.write( "Now increment \"W\".
\n" ); document.write( "\"W=2\"
\n" ); document.write( "\"2%2BL=20\"
\n" ); document.write( "\"L=18\"
\n" ); document.write( "\"A=2%2A18=36\"
\n" ); document.write( "\"W=2\",\"L=18\",\"A=36\"
\n" ); document.write( "Incremenet again,
\n" ); document.write( "\"W=3\"
\n" ); document.write( "\"3%2BL=20\"
\n" ); document.write( "\"L=17\"
\n" ); document.write( "\"A=3%2A17=51\"
\n" ); document.write( "\"W=3\",\"L=17\",\"A=51\"
\n" ); document.write( "Continue this way until you cannot (eventually \"L=0\" will signal it's time to stop).
\n" ); document.write( "
\n" ); document.write( "
\n" );