Linear programming is used to maximize or minimize quantities subject to constraints. It can be applied to problems with any number of variables and constraints, as long as the relationships are linear. Key aspects include defining an objective function to optimize, determining the feasible region where all constraints are satisfied, and finding extreme points where the objective function may be maximized or minimized. An example problem involves determining how to allocate candy mixtures to maximize revenue given constraints on available ingredients. The optimal solution is found at an extreme point within the bounded feasible region.