document.write( "Question 892773: There are 50 total ducks and cows in a field. 154 total legs can be counted. How many cows are there? How many ducks? \r
\n" ); document.write( "\n" ); document.write( "I am going into 7th grade and not sure how to solve this.
\n" ); document.write( "

Algebra.Com's Answer #540776 by LinnW(1048)\"\" \"About 
You can put this solution on YOUR website!
let d = the number of ducks
\n" ); document.write( " c = the number of cows
\n" ); document.write( "( the number of ducks ) times ( 2 legs per duck )
\n" ); document.write( "+
\n" ); document.write( "( the number of cows ) times ( 4 legs per cow ) = 154
\n" ); document.write( "d*2 + c*4 = 154
\n" ); document.write( "We also know that the number of ducks plus the number of cows = 50
\n" ); document.write( "d + c = 50
\n" ); document.write( "We have two equations
\n" ); document.write( "d + c = 50 and d*2 + c*4 = 154. Let's rewrite the second equation
\n" ); document.write( "2d + 4c = 154
\n" ); document.write( "Using d + c = 50 let's solve for d
\n" ); document.write( "d + c = 50
\n" ); document.write( " add -c to each side
\n" ); document.write( " d = 50 -c
\n" ); document.write( "Substitute (50 - c) for d in 2d + 4c = 154
\n" ); document.write( "2(50 - c) + 4c = 154
\n" ); document.write( "100 -2c + 4c = 154
\n" ); document.write( "100 + 2c = 154
\n" ); document.write( "add -100 to each side
\n" ); document.write( " 2c = 54
\n" ); document.write( "divide each side by 2
\n" ); document.write( " c = 27
\n" ); document.write( "Since d = 50 - c
\n" ); document.write( "d = 50 - 27 = 23
\n" ); document.write( "So we have 27 cows and 23 ducks
\n" ); document.write( "27(4 legs) + 23( 2 legs )
\n" ); document.write( "108 + 46 = 154 legs in total
\n" ); document.write( "27 cows and 23 ducks = 50 animals in the field
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" );