A student has 54 coins in a bank. There are only quarters, nickels, and dimes in the bank. If there are twice as many dimes as quarters and three times as many nickels as quarters, how many dimes are in the bank?