You and your two friends are working in a multinational company. How can you three find out the average salary of you all without disclosing your own salary to the other two?
If I put in one canary per cage, I have one bird too many. If I put in two canaries per cage, I have one cage too many. How many cages and canaries do I have?