Let's analyze the given statements one by one to solve the puzzle:
- The woman living in the red house is married to the man with the mustache.
- The man with the mustache does not live in the red house.
- The man living in the green house has a beard.
- There is only one man with a beard in the village.
- The woman living in the yellow house has a cat.
Combining statements 1 and 2, we can infer that the man with the mustache is married to the woman in the red house but does not live there himself. This means the man with the mustache must live in a different house. Since every man is married and there is one man named John who is not married, John cannot be the man with the mustache.
From statement 3, we know that the man in the green house has a beard and, according to statement 4, he is the only man with a beard in the village. Therefore, the man with the mustache cannot have a beard and cannot live in the green house.
Now, we have the following information:
- The man with the mustache is married to the woman in the red house.
- The man with the mustache does not live in the red house or the green house.
- The man with a beard lives in the green house, and he is the only man with a beard.
- John does not have a mustache and is not married.
Since the woman with a cat lives in the yellow house (statement 5), no man can live there because each house is inhabited by either a man or a woman, not both. So, we have two possible houses left for the man with the mustache, which are the blue house and the yellow house. However, since the yellow house is inhabited by the woman with the cat, the man with the mustache must live in the blue house.
We can conclude the following:
- The woman with a cat lives in the yellow house, so no man lives there.
- The man with a beard lives in the green house.
- The man with the mustache lives in the blue house and is married to the woman in the red house.
- John cannot be the man with the mustache or the man with the beard, so he must live in the only house left, which is the red house, because the woman in the red house is married to the man with the mustache who lives in the blue house.
Therefore, the answers are:
A. John lives in the red house.
B. The woman with a cat lives in the yellow house.
C. The man with a beard lives in the green house.