document.write( "Question 902541: A livestock pen is built in the shape of a rectangle that is twice as long as it is wide. The perimeter is 48 feet. If the material used to build the pen is $1.25 per foot for the longer sides and $3.25 per foot for the shorter sides, find the cost to build the pen. \n" ); document.write( "
Algebra.Com's Answer #547381 by Stitch(470)\"\" \"About 
You can put this solution on YOUR website!
The equation for the perimeter of a rectangle is P = 2L + 2W.
\n" ); document.write( "Equation 1: \"48+=+2L+%2B+2W\"
\n" ); document.write( "Equation 2: \"L+=+2W\"
\n" ); document.write( "Plug 2W into equation 1 for L.
\n" ); document.write( "\"48+=+2%2A%282W%29+%2B+2W\"
\n" ); document.write( "Multiply the 2 through.
\n" ); document.write( "\"48+=+4W+%2B+2W\"
\n" ); document.write( "Combine like terms.
\n" ); document.write( "\"48+=+6W\"
\n" ); document.write( "Divide both sides by 6.
\n" ); document.write( "\"highlight%288+=+W%29\"
\n" ); document.write( "Now plug 8 into equation 2 for W and solve for L.
\n" ); document.write( "Equation 2: \"L+=+2W\"
\n" ); document.write( "\"L+=+2%2A%288%29\"
\n" ); document.write( "\"highlight_green%28L+=+16%29\"
\n" ); document.write( "---------------------------
\n" ); document.write( "Now it is time to calculate the cost of the fence.
\n" ); document.write( "The longer side costs $1.25/ft.
\n" ); document.write( "Multiply $1.25/ft by the Length of 16ft. Multiply that by 2 because there are two sides of the rectangle.
\n" ); document.write( "$1.25 * 16 * 2 = $40 for the long sides.
\n" ); document.write( "---------------------------
\n" ); document.write( "The short side costs $3.25/ft.
\n" ); document.write( "Multiply $3.25/ft by the Length of 8ft. Multiply that by 2 because there are two sides of the rectangle.
\n" ); document.write( "$3.25 * 8 * 2 = $52 for the long sides.
\n" ); document.write( "---------------------------
\n" ); document.write( "Now add the costs together.
\n" ); document.write( "$40 + $52 = $92
\n" ); document.write( "It will cost $92 to build the pen.
\n" ); document.write( "
\n" );