A bag containing thirty coins all of which are either quarters or dimes. If the
total value of the coins is $5.85, how many of each
kind are there?