There was a greenhouse.
Inside the greenhouse, there is a white house.
Inside the white house, there is a red house.
Inside the red house, there are lots of babies.
You have two bottles of pills marked with labels A and B. The pills are identical. The doctor has asked you to take one A pill and one B pill daily. You cant take more or less than that.
While taking out the pills one day, you took out one pill from A and by mistake took out two from B. You have no idea which pill is which now.
You cant throw away the expensive pills. What will you do now?
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?