Hey Dubljay:
You need to match the voltage of your TM. If it is 12-volt you need to connect the batteries in parallel: + to + to + on TM and - to - to - on TM. If it is a 24-volt TM you need to connect the batteries in series: + wire from TM to + on one battery and - wire from TM to - on the other battery and then run a jumper wire between the two batteries from the other two posts, which is + to -.