document.write( "Question 1026792: A farmer has donkeys and ostriches. There are 100 heads and 252 legs. Two donkeys have three legs each. calculate how many of each animal type the farmer has. \n" ); document.write( "
Algebra.Com's Answer #642088 by MathTherapy(10557)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "A farmer has donkeys and ostriches. There are 100 heads and 252 legs. Two donkeys have three legs each. calculate how many of each animal type the farmer has.
\n" ); document.write( "
Let the number of donkeys be D
\n" ); document.write( "Then number of ostriches = 100 – D
\n" ); document.write( "Number of donkeys with 4 legs: D – 2
\n" ); document.write( "We then get the following LEGS equation: 2(100 - D) + 4(D – 2) + 3(2)) = 252
\n" ); document.write( "200 - 2D + 4D – 8 + 6 = 252
\n" ); document.write( "- 2D + 4D + 198 = 252
\n" ); document.write( "2D = 252 – 198
\n" ); document.write( "2D = 54
\n" ); document.write( "D, or number of donkeys = \"54%2F2\", or \"highlight_green%2827%29\"
\n" ); document.write( "Number of ostriches: 100 – 27, or \"highlight_green%2873%29\" \n" ); document.write( "
\n" );