document.write( "Question 163036: I am helping my 5th grade son with his homework. I would like to give him a formula to this word problem.
\n" ); document.write( "A pencil cost .50 and a pen cost .25. If Will spends 5 dollars on 17 pens and pencils, how many of each does he buy?
\n" ); document.write( "

Algebra.Com's Answer #120145 by jojo14344(1513)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Remember the following,
\n" ); document.write( "Number of Pencils=\"x\"
\n" ); document.write( "Number of Pens=\"y\"
\n" ); document.write( "So, \"x%2By=17\" right? -----------------------------> EQN 1
\n" ); document.write( "In EQN 1 ,we also get,
\n" ); document.write( "\"x=17-y\" ----------------------------------------> EQN 2
\n" ); document.write( "Next, we know the cost for each pencil & Pen with a total cost of $5.00, so
\n" ); document.write( "\"0.50x%2B0.25y=5.00\" ------------------------------> EQN 3
\n" ); document.write( "Subst. EQN 2 in EQN 3,
\n" ); document.write( "\"0.50%2817-y%29%2B0.25y=5.00\"
\n" ); document.write( "\"8.5-0.50y%2B0.25y=5.00\"
\n" ); document.write( "\"8.5-5.00=0.50y.25y\"
\n" ); document.write( "\"3.50=0.25y\" --------> \"cross%283.50%2914%2Fcross%28.25%29=cross%280.25%29y%2Fcross%280.25%29\"
\n" ); document.write( "\"highlight%28y=14%29\", Number of Pens
\n" ); document.write( "Via EQN 2, \"highlight%28x=17-14=3%29\", Number of Pencils
\n" ); document.write( "In doubt? Go back EQN 3,
\n" ); document.write( "\"0.50%283%29%2B0.25%2814%29=5.00\"
\n" ); document.write( "\"1.50%2B3.50=5.00\"
\n" ); document.write( "\"5.00=5.00\"
\n" ); document.write( "Thank you,
\n" ); document.write( "Jojo
\n" ); document.write( "
\n" );