A small jar of coins has 20 dimes and 8 nickels. A large jar has the same ratio of dimes to nickels. If the large jar has 36 nickels, how many dimes does it contain?​