Maria and João take a walk around the square together, counting the houses around it. They started counting the houses from different points. The fifth house of Maria is the twelfth of João and the fifth house of João is the thirtieth of Maria. How many houses are there around the square?
As the $5^{\text{th}}$ house from Maria is the $12^{\text{th}}$ house from João, the difference in the counts is 7 houses. Thus, the $1^{\text{st}}$ house from Maria is the $8^{\text{th}}$ house from João, and the $5^{\text{th}}$ house from João corresponds to two houses before the house where Maria started counting. However, since the $5^{\text{th}}$ house from João is the $30^{\text{th}}$ house from Maria, the square has 32 houses: the 30 houses that Maria has already counted plus the 2 houses that are missing for Maria to reach the point where she started counting.