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 night’s game. How many boxes of popcorn does he sell?