Example
Alice has $8 to buy chocolate (X) and strawberries (Y). So she can buy chocolate and strawberries, as long as she spends less than $8.
The price of a chocolate is $4. She finds strawberries for $2 each.
Her budget constraint is
$$4X + 2Y \leq 8$$A tiny bit of algebra gives
$$Y \leq - 2X + 4$$The budget constraint is the shaded area in the plot below
Question
Alice has $616 to buy chocolate (X) and strawberries (Y). The price of a chocolate is $85 and the price of a strawberry is $92.
Write Alice's budget constraint. Can he afford 5 chocolates and 8 strawberries at the same time?
Alice's budget constraint is
$$ 85 X + 92 Y \leq 616 $$In total, 5 chocolates and 8 strawberris costs Alice
$$ 85 \times 5 + 92 \times 8 = 1161 $$No! Alice cannot afford 5 chocolate bars and 8 strawberries.