Let E be the number of erasers and P the number of pencils, the cost for the erasers will be 1*E and the cost of the pencils will be 0.25*P.
Then, adding both, we get the total cost:
If the total cost has to be 5 or less, we can define the inequality as:
We can solve this inequality as E in function of P or viceversa.
Answer:
Being E the number of erasers and P the number of pencils, the inequality is E+0.25P<=5.
The inequality for E in function of P is E<=5-0.25P.
The inequality for P in function of E is P<=20-4E.