There are 30 counters in total in the bag. If we visualise the ratio as there being x red counters and 5x green counters, we find that there are 6x counters in total in the bag, and thus we can conclude that 6x = 30. Then we can work out x as 30/6 =5. Finally, we know that there are 5x green counters in the bag, so the number of green counters will be 5 * 5 = 25. So there are 25 green counters.
This question could be continued, for instance by stating that more of a certain colour of counters is added to the bag, then giving the new ratio and asking the student to calculate the number of counters that were added to the bag.