Here's a link describing how to connect multiple 12V batteries together such that each battery gets fed current through paths of the same resistance as the others when being charged, and such that each battery supplies current through paths of the same resistance as the others when feeding loads -> this is called connecting batteries together in a "balanced" way: