Amber has been saving quarters and dimes. She opened up the piggy bank and determined that it contained 18 coins worth $2.85. Determine how many dimes and quarters were in the piggy bank.