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 $585 to buy chocolate (X) and strawberries (Y). The price of a chocolate is $68 and the price of a strawberry is $35.
Write Alice's budget constraint. Can he afford 4 chocolates and 9 strawberries at the same time?
Alice's budget constraint is
$$ 68 X + 35 Y \leq 585 $$In total, 4 chocolates and 9 strawberris costs Alice
$$ 68 \times 4 + 35 \times 9 = 587 $$No! Alice cannot afford 4 chocolate bars and 9 strawberries.