Question 1136616
A student has $500. She buys pencil at $50 each and erasers at $20 each. '
<pre>
Very expensive pencils and erasers!!!

Let x = the number of pencils.
Let y = the number of erasers. Then:
Money spent on pencils = 50x
Money spent on erasers = 20y

So {{{50x+20y<=500}}} which simplifies to {{{5x+2y<=50}}}</pre>

She gets at least 5 of each 
<pre>
So {{{x>=5}}} and {{{y>=5}}}</pre>
and the money spent on pencils is over $100 more that that spend on erasers.<pre>
So {{{50x > 20y + 100}}} which simplifies to {{{5x>2y+10}}}

The system of inequalities is:

{{{system(5x+2y<=50,5x>2y+10,x>=5,y>=5)}}}

We graph the 5 lines, the second one dotted, the others solid:

{{{system(5x+2y=50,5x=2y+10,x=5,y=5)}}}

The feasible region is the quadrilateral below.  Since the number 
of pencils and erasers must be whole numbers, we circle all the 
points with whole numbers for both coordinates (called "lattice 
points").  We include all the lattice points which are on any of
the sides of the quadrilateral which are solid, but not on the
side which is dotted.  [Note: We cannot include (6,10) because 
even though it is on a side which is solid, it is also on the 
side which is dotted.

{{{drawing(400,400,-.9,20,-.9,20,
green(line(-2,5,25,5),line(5,-2,5,25)),
graph(400,400,-.9,20,-.9,20, (2.5*x-5)(
sqrt(sin(9x))/sqrt(sin(9x)) )), line(-6,40,22,-30),
circle(5,5,.15),
circle(5,6,.15),
circle(5,7,.15),
circle(6,5,.15),
circle(6,6,.15),
circle(6,7,.15),
circle(6,8,.15),
circle(6,9,.15),
circle(7,5,.15),
circle(7,6,.15),
circle(7,7,.15),
circle(8,5,.15)


 )}}}</pre> 
Find:
a. How many ways the money can be spent?<pre>
These are represented by the circled points in or on the 
feasible region (inside the quadrilateral or on the 
quadrilateral's solid sides but not on the dotted side):

We count the circled points and find there are 12 of them. 
(x=no. of pencils, y=no. of erasers):

(5,5), (5,6), (5,7), (6,5), (6,6), (6,7), 
(6,8), (6,9), (7,5), (7,6), (7,7), (8,5).</pre> 
b. The greatest number of pencils that can be bought.<pre>
That's the greatest x-coordinate, which is 8.</pre>
c. The greatest number of erasers that can be bought.<pre>
That's the greatest y-coordinate, which is 9. 

Edwin</pre>