Joe has $6.40 in nickels and quarters. He has two more nickels than quarters. How many quarters does Joe have?