You have $12 in nickels and quarters. If you have the same number of each kind of coin, how many nickels do you have?

1200/(25+5) = 40