Then 2X+5Y=24
∵ X≥0,Y≥0 and X,Y are integers
So the collation yields the following three kinds of results
X=12,Y=0
X=7,Y=2
X=2,Y=4
If we want the profit of B's apparatus to be at least three times that of A's
then the first must be excluded.