Jail costs divided to reach interlocal pact