Imagine there are two villages, one in India and one in Pakistan, located right next to each other with just a border fence in between. In the Indian village, there is a well with 7 buckets, and in the Pakistani village, there is a well with 5 buckets.
The problem is that the villagers from both sides need water from the well for their crops. Each bucket can hold only one gallon of water at a time. The catch is that due to the tense relations between the two countries, crossing the border fence is strictly prohibited.
Your task is to find a way for both villages to share the buckets equally, such that each village has the same number of buckets with an equal amount of water. How can they do it without breaking any rules or crossing the border fence?