Hi,
unfortunately I can't recall the full question but I'd like to explain the type of question I am searching a best practice method for:
Given that you have two products at individual prices (let's say Bagels at 12$ each and Sandwiches at 7$ each) and a total sum that was spent (I guess it was around 640 $) and the question is HOW MANY BAGELS DID HE BUY? How would one calculate such questions?
What I did was analyzing the answers, e.g.:
A 30
B 35
C 40
D 45
E 50
And then multiplying the price of a Bagel * the given answer (e.g. 12$ * 40), and then looked if the difference to the total price was properly divisible by the other product's price (e.g. 7$).
Is there a better way to calculate this type of question