GM Financial Interview Question

Relate linear programming with calculus.