Distance between buildings. There shall be a minimum average distance between dwelling structures of 25 feet, plus 1/2 foot for each foot of opposing building wall length, up to a maximum of 75 feet. This provision shall also apply to walls of the same building facing one another such as in a courtyard formed by a U-shaped building. Whenever a driveway is located between buildings, the minimum distance between building walls shall be 50 feet.