Section 25. The supervisors of any two or more districts may co-operate and enter into agreements with one another in the exercise of any or all powers conferred by sections eighteen to twenty-five, inclusive.