Herm has nickels, dimes, and quarters. The total of his nickels and dimes are worth $2.70. The total of his dimes and quarters equal $3.50. He has 47 coins. How many quarters does Herm have