Dave sells popcorn at the ballpark. He is paid a flat rate of $40 each day, but also earns $0.45 for each box of popcorn he sells. Dave earns a total of $112 at Wednesday nights game. How many boxes of popcorn does he sell?