Question 1206174
An egg tart costs $1.60. Each person is entitled to buy another 2 egg tarts at $1.30 each after buying 3 egg tarts. Find the maximum you can buy with $24.00 and how much money would be left over. 

Let m be the number of sets of 3 tarts
Let n be the number of sets of 2 tarts

one set -3tarts will cost 4.80
1one set -2 tarts will cost 2.60

4.80m +2.60 n <=24

You can maximise the number of tarts by buying maximum sets of three.

lets try 4 sets of m and 2 sets of n

4.80*4+2.60*2
19.20 +5.20 >24  so not possible

lets try 4 sets of m and 1 set of n

19.20 +2.60 = 21.80 possible

3*4+1*2= 14 tarts for 21.80 <24


24-21.80

balance $2.20