Just to add to the last point — if you’re mixing math and currency, remember:
$...$= math\\$= literal dollar sign
So:
$x+1$ costs \\$5. → renders math for x+1 and shows the price as $5.
That’s really all you need: math with $, money with \\$.