No detached private garage or other accessory building shall be placed closer to a rear property line than 10 feet or closer to a side property line than five feet, and, for each foot the height of such building exceeds 15 feet, these setbacks shall be increased by one foot. No detached garage or other accessory building shall be placed closer to the front street right-of-way line than the front main wall of the principal building or 50 feet, whichever is greater. An attached garage or carport may extend into a rear yard.