document.write( "Question 964638: I need help writing a function from a word problem. The question states: A piece of wire 30 in. long is bent to form a rectangle. If one of its dimensions is x in., express the area as function of x. \n" ); document.write( "
Algebra.Com's Answer #589474 by Fombitz(32388)\"\" \"About 
You can put this solution on YOUR website!
The area of a rectangle is,
\n" ); document.write( "\"A=L%2AW\"
\n" ); document.write( "where L is length and W is the width.
\n" ); document.write( "One of the dimensions is x.
\n" ); document.write( "Let x be the length (doesn't matter which you choose, the equation will work out the same).
\n" ); document.write( "The length of the wire is also equal to the perimeter of the rectangle,
\n" ); document.write( "\"P=2%28L%2BW%29=30\"
\n" ); document.write( "So,
\n" ); document.write( "\"L%2BW=15\"
\n" ); document.write( "\"x%2BW=15\"
\n" ); document.write( "\"W=15-x\"
\n" ); document.write( "So then substituting back into the area equation,
\n" ); document.write( "\"A=x%2815-x%29\"
\n" ); document.write( "
\n" ); document.write( "
\n" );