document.write( "Question 763201: The price of 4 stationery are as follows: pencil $5 each, pen $9 each, ruler $6 each and rubber $4 each. Jason has $120 to buy the stationery. If he has to buy at least one for each type of stationery, and the total price should be a prime number, what is the greatest number of pencil Jason can buy? \n" ); document.write( "
Algebra.Com's Answer #464608 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Suppose Jason bough 20 pencils
\n" ); document.write( "\"+20%2A5+=+100+\"
\n" ); document.write( "He has $20 to spend on the rest
\n" ); document.write( "\"+9+%2B+6+%2B+4+=+19+\"
\n" ); document.write( "That works, since $119 is under $120
\n" ); document.write( "and it is a prime number
\n" ); document.write( "-----------------
\n" ); document.write( "21 pencils means he spends \"+21%2A5+=+105+\"
\n" ); document.write( "and has $15 left
\n" ); document.write( "\"+9+%2B+6+%2B+4+=+19+\"
\n" ); document.write( "He ends up spending $124,
\n" ); document.write( "which is more than $120
\n" ); document.write( "------------------------
\n" ); document.write( "The most pencils he can buy is 20
\n" ); document.write( "
\n" ); document.write( "
\n" );