You manage the production of two products, Product A and Product B.
The profit from product A is ${\rm $}0.50$ per unit and the profit from Product B is ${\rm $}1.00$ per unit.
You want to maximize the total profit P.
$P=0.5A+B$
However, the following constraints apply:
The total number of units produced (for both products combined) cannot exceed 6 due to material limitations.
$A+B \leq 6$
The difference between the number of units of Product A and Product B should npt exceed 2 due to market demand.
$A-B \leq 2$
$B-A \leq 2$
You cannot produce a negative number of units for either product.