Cost of an apple = $1
Cost of a mango = $2
Let number of apples purchased be X and no. of mangoes purchased be Y.
So, cost of apples purchased = "X*1"
Cost of mangoes purchased = "Y*2"
Also, since the total cost must always be less than $10 we have
"X+2Y<=10"
Since X and Y are number of fruits they can only be represented by whole numbers.
Hence, for the given inequality, we can have
Y= 0,1,2,3,4,5 and the corresponding value of X= 10,8,6,4,2,0;
(X,Y) can be {(10,0),(8,1),(6,2),(4,3),(2,4),(0,5), (8,0), (6,1),(6,0), (4,2), (4,1), (4,0), (2,0), (2,1), (2,2), (2,3), (0,0), (0,1), (0,2), (0,3), (0,4) }
Comments
Leave a comment