Jimmy has a pocket full of nickels and quarters. Their are a total of 40 coins. When he added it all up he had $5.20. How many nickels did he have?