Hope someone can help with this problem:

On a sports day of a school, each competitor was given 3 drink coupons while each non-competitor was given 2 drink coupons. The ratio of the numnber of pupils to the number of coupons given was 6:17. What fraction of the pupils in the school competed in the sports day?

Appreciate if you can show detail workings.