A man desired to get into his work building but he had forgotten his code.
However, he did recollect five pieces of information
-> The sum of the 5th number and 3rd number is 14.
-> The difference between the 4th number and 2nd number is 1.
-> The 1st number is one less than twice the 2nd number.
->The 2nd number and the 3rd number equals 10.
->The sum of all digits is 30.
* 8 + 6 =14
* 5 - 4 = 1
* 7 = 2*4 - 1
* 4 + 6 = 10
* 7+4+6+5+8 = 30
A man has to get a fox, a chicken and a sack of corn across a river. He has a row boat and it can only carry him and one other thing.
If the fox and the chicken are left together, the fox will eat the chicken.
If the chicken and corn are left together, the chicken will eat the corn.
How does the man do it?
The man and the chicken cross the river, (the fox and corn are safe together), he leaves the chicken on the other side and goes back across.
The man then takes the fox across the river and since he can't leave the fox and chicken together, he brings the chicken back.
Again, since the chicken and corn can't be left together, he leaves the chicken and he takes the corn across and leaves it with the fox.
He then returns to pick up the chicken and heads across the river one last time.
John and Mary have fallen in love. John wants to send Mary a ring through the post but in their country of Kleptopia, any package that is not locked will have its contents stolen. John and Mary have plenty of padlocks but neither has the other's key. How can John get the ring safely to Mary?
John sends Mary a box with the ring in it and one of his padlocks on it. Upon receipt Mary affixes her own padlock to box and mails it back with both padlocks on it. When John gets it he removes his padlock and sends the box back to Mary. Mary has the key for her own lock and can now access the ring.
You’re standing in a hallway with three light switches on the wall, each of which turns on a different lamp inside a closed room. You can’t see inside the room, and you can’t open the door except to enter the room. You can enter the room only once, and when you do, all the lamps must be turned off. How can you tell which switch turns on which lamp?
Turn on the right switch and leave it on for two minutes. After two minutes, turn on the middle switch and leave it on for one minute. When that minute is up, turn off both switches and enter the room. One light bulb will be hot (1st switch) and one will be warm (2nd switch). The cold bulb will correspond to the switch you didn’t turn on.