Persons owning adjoining lands, both of which are used for agricultural, horticultural, grazing or livestock purposes, shall bear a just proportion of the cost of the constructing, repairing and maintaining a partition fence between such lands.