document.write( "Question 1168690: Hi\r
\n" ); document.write( "\n" ); document.write( "Peter was given a box of pens. He sold all the pens. Each pen was sold at $8.90. For every set of 5 pens sold a pen was given free. 2/3 of the pens were sold in sets of 5 pens. He collected $1174.80 how many pens were in the box at first.
\n" ); document.write( "Thanks\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #793317 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
x = number of pens sold separately.
\n" ); document.write( "y = number of pens sold in sets of 5.
\n" ); document.write( "when the pens are sold separately, they cost 8.90 each.
\n" ); document.write( "when the pens are sold in sets of 5, they cost 44.50 plus the buyer gets a pen for free.
\n" ); document.write( "your cost equation is 8.90 * x + 44.50 * y = 1174.80.
\n" ); document.write( "8.90 is the cost for one pen sold separately.
\n" ); document.write( "44.50 is the cost of a set of 5 pens with 1 extra pen given for free.
\n" ); document.write( "you are given that 2/3 of the pens were sold in sets of 5.
\n" ); document.write( "since (x + y) is the total number of pens sold, this means that y = 2/3 * (x + y)
\n" ); document.write( "simplify to get y = 2/3 * x + 2/3 * y
\n" ); document.write( "subtract 2/3 * y from both sides of this equation to get:
\n" ); document.write( "y - 2/3 * y = 2/3 * x
\n" ); document.write( "combine like terms to get:
\n" ); document.write( "1/3 * y = 2/3 * x
\n" ); document.write( "solve for y to get:
\n" ); document.write( "y = 3/1 * 2/3 * x
\n" ); document.write( "simplify to get:
\n" ); document.write( "y = 2 * x
\n" ); document.write( "in the equation of 8.90 * x + 44.50 * y = 1174.80, replace y with 2 * x to get:
\n" ); document.write( "8.90 * x + 44.50 * 2 * x = 1174.80.
\n" ); document.write( "simplify to get:
\n" ); document.write( "8.90 * x + 89 * x = 1174.80
\n" ); document.write( "combine like terms to get:
\n" ); document.write( "97.90 * x = 1174.80
\n" ); document.write( "solve for x to get:
\n" ); document.write( "x = 12.
\n" ); document.write( "since y = 2 * x, then you get:
\n" ); document.write( "y = 24.
\n" ); document.write( "your equation of 8.90 * x + 44.50 * y = 1174.80 becomes:
\n" ); document.write( "8.90 * 12 + 44.50 * 24 = 1174.80 which becomes 1174.80 = 1174.80, confirming the values of x and y are good.
\n" ); document.write( "x represents 1 pen.
\n" ); document.write( "y represents 6 pens (5 that are bought and 1 that is given free).
\n" ); document.write( "12 * 1 + 24 * 6 = 156.
\n" ); document.write( "there must have been 156 pens in the box.
\n" ); document.write( "that's your solution, as best i can determine.
\n" ); document.write( "he sold 12 pens separately.
\n" ); document.write( "he sold 24 sets of 5 pens each = 120 pens
\n" ); document.write( "he gave away 24 pens (1 for each set of 5).
\n" ); document.write( "the total pens in the box had to be 12 + 120 + 24 = 156.
\n" ); document.write( "132 of the pens were sold.
\n" ); document.write( "24 were given away.\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );