Last year a baseball team pay $20 per bag $12 glove, spending a total of $1,040. This year the price went up to $25 per bat and $16 per glove. The team spent $1,350 to purchase the same amount of equipment as last year. How many bats and gloves does it take purchase each year?