The city needs to connect two houses to an existing water supply line using a single pump instead of two. House A and House B are located different distances from the supply line. To use the minimal amount of pipe, the pump should be located at the connection point that is the average distance from each house, minimizing the total pipe needed to connect both houses.