The other tutor apparently didn't understand what you want.
\n" );
document.write( "\r\n" );
document.write( "We draw the lines\r\n" );
document.write( "\r\n" );
document.write( "y=2x-8, y=10-x, y=
, x=1, and y=2 \r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "Maximization \r\n" );
document.write( "Maximize p = 7x - 4y subject to\r\n" );
document.write( "y ≧ 2x - 8, the red line y=2x-8 and the region above it, since it's y≧\r\n" );
document.write( "y ≦ 10 - x, the green line y=10-x and the region below it, since it's y≦\r\n" );
document.write( "y ≦
, the blue line y=
and the region below it, since it's y≦\r\n" );
document.write( "x ≧ 1, the black line x=1 and the region to the right of it, since it's x≧\r\n" );
document.write( "y ≧ 2, the purple line y=2 and the region above it, since it's y≧\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "We will chop off the unnecessary parts of the lines, leaving \r\n" );
document.write( "only the region bounded by them, which is this pentagon:\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "Now we must find all the corner points of this pentagon, by solving these\r\n" );
document.write( "five systems:\r\n" );
document.write( "\r\n" );
document.write( "
the red and green lines, which gives (6,4)\r\n" );
document.write( "
the red and purple lines, which gives (5,2)\r\n" );
document.write( "
the black and purple lines, which gives (1,2)\r\n" );
document.write( "
the blue and black lines, which gives (1,4.5).\r\n" );
document.write( "
the blue and green lines, which gives (4,6)\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( " \r\n" );
document.write( "We evaluate p = 7x - 4y at each of those corner points:\r\n" );
document.write( "\r\n" );
document.write( "Corner point | p = 7x - 4y\r\n" );
document.write( " (1,2) | -1\r\n" );
document.write( " (5,2) | 27\r\n" );
document.write( " (6,4) | 26\r\n" );
document.write( " (4,6) | 4\r\n" );
document.write( " (1,4.5) | -11\r\n" );
document.write( "\r\n" );
document.write( "So the maximum value of p=27 occurs when x=5 and y=2\r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" );
document.write( "