There are three prisoners held captive. They are standing in a row one in front of the other and blind folded. The guard has five hats, three black and two white.He places one hat on each prisoner and discards the remaining two hats. He removes the blind folds and tells the prisoners that if anyone can guess the color of their hat they can all go free, if not death. The person in the back can see the color of the two hats in front of him,the guy in the middle can see the one hat in front of him and the guy in front cant see anything. After some time passes the guy in front says the color of his hat and is correct. What color is his hat and how did he figure it out?.