document.write( "Question 264037: Inside a barn are lambs and people. If we count 30 heads and 104 legs in the barn, how many lambs and how many people do we have in the barn? \n" ); document.write( "
Algebra.Com's Answer #194476 by Greenfinch(383)\"\" \"About 
You can put this solution on YOUR website!
Let the number of people be P, then the number of lambs is 30 - P
\n" ); document.write( "the number of legs is 2P + 4(30 - P)= 104
\n" ); document.write( "2P + 120 - 4P = 104
\n" ); document.write( "-2P = - 16
\n" ); document.write( "P = 8, lambs are therefore 22
\n" ); document.write( "Check 2P = 16, 4 x Lambs = 88. 88 + 16 = 104
\n" ); document.write( "
\n" );