An ice cream shop makes vanilla and chocolate ice cream. The vanilla ice cream machine has a 180-cup capacity, and it sells 20 cups per day. The chocolate ice cream machine has a 140-cup capacity, and it sells 16 cups per day. Write and solve an equation to show when the two machines will have the same amount of ice cream left

Let x be the number of days passed since the ice cream shop started selling vanilla and chocolate ice cream.

The amount of vanilla ice cream left after x days is: 180 - 20x
The amount of chocolate ice cream left after x days is: 140 - 16x

The two machines will have the same amount of ice cream left when:

180 - 20x = 140 - 16x

Now, solve for x:

180 - 20x = 140 - 16x
180 - 140 = 20x - 16x
40 = 4x
x = 10

Therefore, after 10 days, the vanilla and chocolate ice cream machines will have the same amount of ice cream left.