At my local greengrocer, you take a ticket from the machine and wait until your number is called. The roll of tickets goes from 000 up to 999.  When I was there last week with my neighbour, we took two tickets in a row and our two numbers added to 777.  What was the next ticket number after ours? 
Overseas Competition->Knowledge Point->Word Problem Modules