A farmer bought a number of pigs for $232. However, 5 of them died before he could sell the rest at a profit of 4 per pig. His total profit was $56. How many pigs did he originally buy?
Let p be the purchase price of pigs. We're given:
P = R - C
Plug in our numbers:
4(p - 5) - 232 = 56
4p - 20 - 232 = 56
To solve for p, we type this equation into our search engine and we get:
p = 77
Let p be the purchase price of pigs. We're given:
- Farmer originally bought p pigs for 232 which is our cost C.
- 5 of them died, so he has p - 5 left
- He sells 4(p - 5) pigs for a revenue amount R
- Since profit is Revenue - Cost, which equals 56, we have:
P = R - C
Plug in our numbers:
4(p - 5) - 232 = 56
4p - 20 - 232 = 56
To solve for p, we type this equation into our search engine and we get:
p = 77