document.write( "Question 331142: a store sells 8 more pencils than pens one day. The cost of the pencil is $0.05 and the cost of the pen is $0.20. If the day's sales of pens and pencils equals $8.90, how many pencils were sold.\r
\n" ); document.write( "\n" ); document.write( "I know there is something with x + x+8, but I can't figure out what to do with the different prices. Thanks.
\n" ); document.write( "

Algebra.Com's Answer #237375 by mananth(16946)\"\" \"About 
You can put this solution on YOUR website!
let pens sold be x
\n" ); document.write( "pencils sold will be x+8
\n" ); document.write( "..
\n" ); document.write( "cost of pen = 20 cents
\n" ); document.write( "cost of pencils= 5 cents
\n" ); document.write( "..
\n" ); document.write( "total sales = 890 cents
\n" ); document.write( "..
\n" ); document.write( "20x+5(x+8)=890
\n" ); document.write( "20x+5x+40=890
\n" ); document.write( "25x=890-40
\n" ); document.write( "25x=850
\n" ); document.write( "x=34 pens sold
\n" ); document.write( "pencils sold = x+8 = 34+8=42
\n" ); document.write( "..\r
\n" ); document.write( "\n" ); document.write( "CHECK
\n" ); document.write( "34*20+42*5=890
\n" ); document.write( "
\n" );