On an island there are 2 villages, Village A and Village B. The villagers of Village A always tell the truth and the villagers of Village B always tell lies. One day the Titanic landed on the island. When the crew went on land, the captain of the Titanic saw 3 villagers. The villagers are either from Village A or Village B. The captain wants to know which village each of them are from, so he asked the first villager. The first villager said that he is from village A.
He asked the second villager the same question. The second villager replied but the captain didn't hear it, so he asked the third villager what the second villager said. The third villager replied: "He said that he was from Village B.".
What village is the third villager from?