James has 35 coins in his pocket, all of them dimes and quarters. If he has a total of $5.15, how many quarters does he have?