In order to safely connect batteries together, you would use battery interconnect cables that are of a properly sized wire gauge based on the power of your inverter. Never parallel together strings of different voltages; series connections should be made or removed before parallel connections. Consult an expert for assistance.