Solving for Two Unknowns

Question
You have a pile of nickels ($0.05) and dimes ($0.10). You have a total of 8 coins worth a total of $0.50. How many nickels do you have?