SOLUTION: 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?

Algebra ->  Customizable Word Problem Solvers  -> Misc -> SOLUTION: 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?      Log On

Ad: Over 600 Algebra Word Problems at edhelper.com


   



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?
Found 2 solutions by josmiceli, Greenfinch:
Answer by josmiceli(19441) About Me  (Show Source):
You can put this solution on YOUR website!
Let p = number of people
Let b = number of lambs (b is for baa)
They all have 1 head each, so
(1) p+%2B+b+=+30
People have 2 legs, and lambs have 4, so
(2) 2p+%2B+4b+=+104
Multiply both sides of (1) by 2 and
subtract from (2)
(2) 2p+%2B+4b+=+104
(1) -2p+-+2b+=+-60
2b+=+44
b+=+22
and, since
p+%2B+b+=+30
p+=+30+-+22
p+=+8
There are 8 people and 22 lambs
check answer:
(2) 2p+%2B+4b+=+104
2%2A8+%2B+4%2A22+=+104
16+%2B+88+=+104
104+=+104
OK

Answer by Greenfinch(383) About Me  (Show Source):
You can put this solution on YOUR website!
Let the number of people be P, then the number of lambs is 30 - P
the number of legs is 2P + 4(30 - P)= 104
2P + 120 - 4P = 104
-2P = - 16
P = 8, lambs are therefore 22
Check 2P = 16, 4 x Lambs = 88. 88 + 16 = 104