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?
A man died, leaving $10,000,000 for his widow, 5 sons and 4 daughters. Each daughter received an equal amount, each son received twice as much as a daughter, and the widow received three times as much as a son.