Tris has two times as many quarters as dimes and three more nickels than dimes. If he has a total of $3.40, how many of each coin does he have?