A collection of 50 coins is worth $5.20. There are twelve more nickes than dimes, and the rest of the coins are quarters. How many coins of each type are in the collection?

This type of question always gives me a hard time. How do I set up the equation for coin problems?