A jar is filled with pennies and nickels in the ratio of 5 to 3. There are 30 nickles in the jar, how many coins are there?