A box contains blue and purple pens. There are 6 less than triple the number of blue pens as purple pens. A blue pen costs 20 cents and a purple pen cost 35 cents. The total value of all the pens is $37.90. How many of each colour pen is their?

1 answer

p = 3b-6
20b+35p = 3790

Now just solve for b and p to see how many of each there are.