Last year, a baseball team paid $20 per bat and $12 per glove, spending a total of $1040. This year, the prices went up to $25 per bat and $16 per glove. The team spent $1350 to purchase the same amount of equipment as last year. How many bats did the team purchase each year?