A piggy bank contains only dimes and quarters. There are a total of 40 coins, and their total value is $5.80. How many quarters are in the piggy bank?
10
12
14
16
18