A boy counted his money and asked the price of a soccer ball, a book and a Lego set; he then knew how much more money he would have to earn before he could get all of them. How did he find out?