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

Let x represent the number of days it will take for both machines to have the same amount of ice cream left.

After x days, the vanilla machine will have 180 - 20x cups of ice cream left and the chocolate machine will have 140 - 16x cups of ice cream left.

Setting these two expressions equal to each other gives:

180 - 20x = 140 - 16x

Subtracting 140 from both sides gives:

40 - 20x = -16x

Adding 16x to both sides gives:

40 = 4x

Dividing by 4 gives:

x = 10

Therefore, it will take 10 days for both machines to have the same amount of ice cream left.