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 #120142 by ankor@dixie-net.com(22740)\"\" \"About 
You can put this solution on YOUR website!
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( ":
\n" ); document.write( "Let x = no. of pencils
\n" ); document.write( "Let y = no. of pens
\n" ); document.write( ":
\n" ); document.write( "x + y = 17
\n" ); document.write( "Arrange for substitution
\n" ); document.write( "y = (17-x)
\n" ); document.write( "and
\n" ); document.write( ".50x + .25y = 5.00
\n" ); document.write( "Substitute (17-x) for y and find x
\n" ); document.write( ".50x + .25(17-x) = 5.00
\n" ); document.write( "solve for x
\n" ); document.write( "
\n" ); document.write( "
\n" );