Please write an equation for the following problem. : 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?

let the number of boxes be x

45x + 4000 = 11200

I will let you solve this equation.

To find the number of boxes of popcorn Dave sold, we can set up an equation based on the given information.

Let's assume x represents the number of boxes of popcorn Dave sold.

According to the problem, Dave earns a flat rate of $40 each day. Additionally, he earns $0.45 for each box of popcorn he sells. So, his total earnings can be expressed as the sum of the flat rate and the amount earned per box:

Total Earnings = Flat Rate + (Amount earned per box * Number of boxes sold)

In this case, we know that Dave's total earnings for Wednesday night's game were $112. So we can set up the equation:

$112 = $40 + ($0.45 * x)

Now, we can solve this equation to find the value of x.

First, let's subtract $40 from both sides of the equation:

$112 - $40 = $0.45 * x

Simplifying,

$72 = $0.45 * x

Next, let's isolate x by dividing both sides of the equation by $0.45:

$72 / $0.45 = x

Simplifying,

160 = x

Therefore, Dave sold 160 boxes of popcorn at Wednesday night's game.