LL.9 Guess the color of the hut being worn

There are three red hats and two white hats. 

After showing these hats to three persons, Taro, Jiro and Hanako, I put a hat on each person which can not be visible to each and hide remaining two hats. 

I asked the color of their own hat in order of Taro, Jiro and Hanako. 

Three persons should find the color of their own hat by looking at other hats of two persons. 

Taro and Jiro could not find but Hanako could find the color after hearing the answer of Taro and Jiro. 

What color is the color of the hat of three persons respectively ?






Answer
Taro : red, 
Jiro : red, 
Hanako : red

Solution
If Jiro and Hanako wear white hats, Taro finds that he wears red. 

However, since Taro could not find, color of Jiro and Hanako is as follows : 
(Jiro-red, Hanako-red) 
(Jiro-red, Hanako-white)  
(Jiro-white, Hanako-red) 

Moreover, if Hanako wears white hat, Jiro can find that the color of his own is red since Jiro heard the answer of Taro. 

However, since Jiro could not find, Hanako wears red. 

Thereby, all three persons wear red.