Data:
Green pencils: 31%
Total of pencils: 100%=60pencils
If the 100% is the total of the pencils you can find the number of green pencils with a rule of three:
Then the number of green pencils is 18,6 or about 19[tex]\frac{31\cdot60}{100}=18.6[/tex]