I'm sorry if this is potentially off topic, but I posted this question at the Math SE and they pointed me here. Both SE sites have a tag for Wolfram Alpha, but maybe you guys are better equipped to help. I do not have Mathematica.
Let's assume I need to buy 2 items. I know the prices of these items, but I can only buy whole values of them. I have a finite amount of money to spend. I want to buy the amount of each item such that I spend the most money when buying both.
Using Wolfram Alpha I can find all integer solutions using this query:
1482 <= 76.61x + 157.84y <= 1560, x>0, y>0 integer solutions
So, then I'd just like it to either display the function's value given the integer solutions for x and y, or show only the most "optimal" solutions (and ideally the function's value with those solutions).