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 $1144 to buy chocolate (X) and strawberries (Y). The price of a chocolate is $64 and the price of a strawberry is $72.
Write Alice's budget constraint. Can he afford 2 chocolates and 4 strawberries at the same time?
Alice's budget constraint is
$$ 64 X + 72 Y \leq 1144 $$In total, 2 chocolates and 4 strawberris costs Alice
$$ 64 \times 2 + 72 \times 4 = 416 $$Yes! Alice can offord 2 chocolate bars and 4 strawberries.