Jeremy had 34 nickels and quarters totaling $4.10. He had two less than twice as many nickels as quarters. How many of each did he have?