Cost–benefit analysis is a way of comparing the pros and cons of different options. It can help you decide which option is best for you. If you want to buy something, it can help you decide if it will be worth it or not.
Imagine that you want to buy a new toy truck. You can do a cost–benefit analysis to figure out if it is worth it or not. First, you need to list the costs, like how much the truck costs and how much it will cost to buy fuel for it to run. Then you can list the benefits, like how much fun you'll have playing with it. After that, you can figure out if the benefits will be worth more than the costs. If they are, then it may be a good idea to buy the toy truck. If not, then you should save your money.