To solve this problem, we can set up a system of equations based on the given information.
Let's denote the number of quarters Jeremy had as "q" and the number of nickels as "n".
From the problem, we know that Jeremy had two less than twice as many nickels as quarters:
n = 2q - 2 (Equation 1)
We also know that the total value of the nickels and quarters equals $4.10:
0.05n + 0.25q = 4.10 (Equation 2)
Now we have a system of two equations. We can solve these equations simultaneously to find the values of n and q.
First, let's substitute Equation 1 into Equation 2:
0.05(2q - 2) + 0.25q = 4.10
Now we can simplify and solve for q:
0.10q - 0.10 + 0.25q = 4.10
0.35q - 0.10 = 4.10
0.35q = 4.20
q = 4.20 / 0.35
q = 12
Now that we know q = 12, we can substitute this value back into Equation 1 to find n:
n = 2(12) - 2
n = 24 - 2
n = 22
Therefore, Jeremy had 22 nickels and 12 quarters.