If I understand correctly you have the answer.
It is agreed upon that the person ANSWERING first (last in line) will answer BLACK for an ODD, and WHITE for an EVEN. Odd/Even applying to only ONE color hat(must be memorized by all...we'll say they picked BLACK to be the counted color)
Regardless of whether the 1st person answered correctly, the rest of them can now deduce what color hat they have on by counting the same color hats in front of themselves.
For instance:
1st person answers = BLACK (odd)...
now 2nd person counts the black hats in front of himself and finds an odd number, therefore he knows his hat is white (for those not following: if he counts and finds odd he CAN'T have black on or the count would have come up even when the 1st person counted).
The 3rd person now knows his hat is BLACK, because its even in front of him. The 4th person, knowing that the 3rd must have counted even, starts the whole process over again, bearing in mind that the person behind him saw an EVEN number of black hats... etc etc etc
FINALLY note that the 1st person to answer did so based solely on his count, therefore he had 50% of dying...
To summarize:
The prisoners are only allowed to say "Black" or "White. The prisoners agree in their meeting that the first person will call "black" if he sees an even number of black hats. Otherwise, he says "white".
Each remaining prisoner counts the number of "blacks" called out behind him, and the number of black hats he can see. If on his turn the total is odd, he must have on a white hat. If the total is even his hat must be black. He calls out the appropriate color.
George Brown, Tom Green and Bill White were talking. ?'Funny thing, said Brown. ?'I've just noticed we're wearing different colored hats the same as our names.' ?'Yes', said one of the others. ?'But none of us is wearing a hat the same color as our name. For instance, I'm wearing a green hat.' Who's wearing what color hat
Train A leaves from Boston to New York. An hour later, Train B leaves from New York to Boston. The two trains are going at exactly the same speed. Which train will be nearer to Boston when they meet
(a) Train A
(b) Train B
(c) None of the above