maz=10x+6y

sub to constraints
=12x+4y<=60,4x+8y>=40

here's a nice linear algebra solver:

http://www.zweigmedia.com/RealWorld/LPGrapher/lpg.html