SOLUTION: Farmer John makes a pig pen out of bales of straw. For one pig he needs 8 bales of straw. When he adds a pig he needs two more bales to make the pen big enough. I need a formula

Algebra ->  Finance -> SOLUTION: Farmer John makes a pig pen out of bales of straw. For one pig he needs 8 bales of straw. When he adds a pig he needs two more bales to make the pen big enough. I need a formula       Log On


   



Question 996934: Farmer John makes a pig pen out of bales of straw. For one pig he needs 8 bales of straw. When he adds a pig he needs two more bales to make the pen big enough. I need a formula to tell him how many bales of straw he will need for a given number of pigs.
Answer by Theo(13342) About Me  (Show Source):
You can put this solution on YOUR website!
you actually have a piecewise function.

y = 0 when x = 0
y = 2x + 6 when x >= 1

if he has no pigs, he doesn't need any.
if he has 1 pig he needs 8
if he has 2 pigs he need 10
if he has 3 pigs he needs 12
etc.