.
Two kinds of fruits are displayed in a fruit stand.
One is avocado fruit whose number is no more than thrice the other,
which is melon. How many avocado and melons are there
if there are at least 20 total of fruits displayed.
~~~~~~~~~~~~~~~~~~~~
@mananth incorrectly interprets the problems restrictions;
THEREFORE, his answer, his solution and his teaching ALL are WRONG.
So, I came to bring you a correct solution and to teach you in a right way.
Let x be the number of melons, and
let y be the number of avocados.
From the condition, you have these inequalities
y <= 3x (1) (the number of avocados is no more than thrice the melons)
x + y >= 20 (2) (there are at least 20 total fruits displayed)
Make a plot of the lines
y = 3x (3)
x + y = 20 (4)
These plots are shown below
Plot y = 3x (red), y = 20-x (green)
The domain which is interesting to you is the part of the 1st quadrant, where x >= 0, y >= 0,
which lies under the red line, but above the green line.
The integer points of the quadratic grid represent possible numbers
of fruits. For example, these pairs are possible
(x,y) = (melons,avocado) = (5,15), (6,15), (7,15), . . . (horizontal line in the plot y= 15)
= (6,18), (7,18), (8,18), . . . (horizontal line in the plot y= 18)
= (8,12), (8,13), (8,14), . . . , (8,24) (vertical line in the plot x = 8)
So, your problem is reduced to the system of inequalities,
and you can solve this system GRAPHICALLY to get better understanding of the solution set.
--------------
Again, note the @mananth incorrectly interpret the problems restrictions;
THEREFORE, his answer, his solution and his teaching ALL are WRONG.
So, you better IGNORE his post for your safety.