Okay then. And Cheese gets the next riddle. She got the closest.

Okay, so the way you figure this out is you rule out possibilities. For the person in back to stand up, he would need to see two red hats in front of him, in which case he would have stood up immediately. However, since this didn't happen, the person in the middle knows that there are two possibilities: he either has a red hat or a black hat. If the person in front was wearing a red hat, then he would have known for sure that he was wearing a black hat, and he would have stood up in 15-30 seconds. Because neither of these happened, the person in front knows that he has to have a black hat on (or the person in the middle would have stood up). So after waiting a minute to make sure the person in the middle wouldn't stand up, he gets up and declares that he is wearing a black hat.

That's the puzzle I give people who are irritating me so that they have something to think about for a while to keep them quiet.

Edit: Oops, changed the color of the other hats from red to white. Fix'd