ELI5: Explain Like I'm 5

Change-making problem

Have you ever gone to the store with your parents and they gave you some money to buy something, like a candy bar, and you had some change left over? You probably needed to figure out how much change you were owed, right? That is what we call the change-making problem.

Imagine you have a certain amount of money, let's say you have $5, and you want to buy something that costs $2.50. You need to figure out how much change you will get back. In this case, you would subtract the cost of the item you're buying ($2.50) from the amount of money you have ($5). The answer you get ($2.50) is how much change you would get back.

Now let's make it a little more complicated. Imagine you have $5 and you want to buy two items that cost different amounts. One item costs $2.50, and the other item costs $1.75. How much change will you get back? To figure this out, you add the cost of both items ($2.50 + $1.75 = $4.25) and then subtract that from the amount of money you have ($5). The answer you get ($0.75) is how much change you would get back.

This problem can get even more complicated if you have a lot of items to buy with different costs. But the important thing to remember is that you need to add up the costs of all the items you're buying and then subtract that total from the amount of money you have to figure out how much change you will get back.
Related topics others have asked about: