6. Three friends - Winnie-the-Pooh, Piglet, and Rabbit went for a walk in red, green, and blue shirts. Their shoes were of the same colors. Winnie-the-Pooh had the same color for his shirt and shoes, Piglet's shoes and shirt were not red, and Rabbit was wearing green shoes. How were the friends dressed?
6. This task is about three friends (Winnie-the-Pooh, Piglet, and Rabbit) and the three colors of their shoes and shirts. Let's first find out the color of the shoes of each friend. We will create a table:

|  | W | P | R |
| :---: | :---: | :---: | :---: |
| K |  |  |  |
| 3 |  |  |  |
| c |  |  |  |

Based on the conditions of the task, let's fill in the table. Piglet's shoes were not red.

|  | W | P | R |
| :---: | :---: | :---: | :---: |
| K |  | - |  |
| 3 |  |  |  |
| c |  |  |  |

Rabbit was wearing green shoes.

|  | W | P | R |
| :---: | :---: | :---: | :---: |
| K |  | - |  |
| 3 |  |  | + |
| c |  |  |  |

Thus, Rabbit could not be wearing red or blue shoes.

|  | W | P | R |
| :---: | :---: | :---: | :---: |
| K |  | - | - |
| 3 |  |  | + |
| c |  |  | - |

Therefore, Winnie-the-Pooh was wearing red shoes.

|  | W | P | R |
| :---: | :---: | :---: | :---: |
| K | + | - | - |
| 3 | - |  | + |
| c | - |  | - |

And Piglet was wearing blue shoes.

|  | W | P | R |
| :---: | :---: | :---: | :---: |
| K | + | - | - |
| 3 | - | - | + |
| c | - | + | - |

Since the color of Winnie-the-Pooh's shirt and shoes matched, he was wearing a red shirt. Therefore, Rabbit was wearing a blue shirt, and Piglet was wearing a green shirt.

Answer: Winnie-the-Pooh in a red shirt and red shoes, Piglet in a green shirt and blue shoes, Rabbit in a blue shirt and green shoes.