Last year, a baseball team paid $10 per bat and $6 per glove, spending a total of $520. This year, the prices went up to $15 per bat and $10 per glove. The team spent $830 to purchase the same amount of equipment as last year. How many bats and gloves did the team purchase each year?