
Ivan V. answered 05/04/21
AI/ML Engineer, former Software Engineer
p = number of popcorns d = number of drinks
We know that Jason only has $24 with him, therefore we know that the maximum he can spend is $24, no more. At this point, we can write an inequality that represents how much Jason will spend.
4p + 3d <= 24
4p means that for every popcorn Jason buys, it will cost him $4. 3d means that for every drink Jason buys, it will cost him $3. The total cost of popcorn and drinks has to be less than or equal to $24.