A set of cannibals trapped three men who were on a safari. They tied them up and blindfolded them and made them stand in a line by their height. The cannibals had five hats, 2 white and 3 black. They put 3 random hats on their heads. They told them if they could figure out the color of their hat, then they could go free.
The tallest man(one in the back who could see the 2 people in front of him) said, "I don't know", the one in the middle said(who could only see 1 person in front of him, "I don't know" and the shortest guy(one in the front and couldn't see anything said, "I know!"
What color did the shortest guy wear? (For extra credit, post your logic!)