During a summer session a student enrolls in two courses, psychology for four hours and engineering for three hours. The student wants to use the available time to amass the largest number of grade points (numerical grade multiplied by the number of hours). Students who have taken these courses previously indicate that probable grades are functions of the time spent:

Ge=x1/5 and Gp=x2/8
where
G= numerical grade ( 4.0=A, 3.0=b etc.)
x1= number of hours per week spent of class studying engineering.
x2=number of hours per week spent of class studying psychology.

The total number of hours available for outside study per week cannot exceed 39. Furthermore, most engineering students can tolerate the two courses in a combination such that
x1+0.5*x2=< 27

Also it is fruitless to spend more time studying beyond that necessary to earn an A.

Use the simplex lgorithm to determine how to distribute study time, subject to the constraints, in order to acquire the maximum number of grade points.

(Ans: B in both courses)