document.write( "Question 38645: There are 18 animals in the barnyard. Some are chickens and some are cows. I counted 50 legs in all. How many of the animals are chickens and how many are cows? \n" ); document.write( "
Algebra.Com's Answer #24195 by Nate(3500)\"\" \"About 
You can put this solution on YOUR website!
There are 18 animals in the barnyard. Some are chickens and some are cows. I counted 50 legs in all. How many of the animals are chickens and how many are cows?
\n" ); document.write( "Define variables:
\n" ); document.write( "c=number of chickens
\n" ); document.write( "o=number of cows
\n" ); document.write( "Define equations:
\n" ); document.write( "c+o=18
\n" ); document.write( "2c+4o=50
\n" ); document.write( "Combine:
\n" ); document.write( "-2c-2o=-36
\n" ); document.write( "+
\n" ); document.write( "2c+4o=50
\n" ); document.write( "=
\n" ); document.write( "2o=14
\n" ); document.write( "o=7
\n" ); document.write( "Substitute:
\n" ); document.write( "c+o=18
\n" ); document.write( "c+7-18
\n" ); document.write( "c=11
\n" ); document.write( "Eleven chickens and seven cows are in barnyard!
\n" ); document.write( "
\n" );