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