The snack machine at the mall is broken. It will not take any quarters. It only takes dimes and nickels. A snack costs 45 cents. If Antonio has 15 cents in nickels and enough dimes to purchase a snack, how many dimes does he have?