Linear programming
How to use a such line

Answers