For this case, the first thing we must do is define variables.
We have then:
x: number of pens
y: number of pencils
We now write the system of inequations:

The solution to the system of inequations is given by the shaded region.
Note: see attached image.