To get the 24 volts you would take the positive from Battery one and the negative from Battery 2. You would then jump from the unused terminals which would be negative from Battery 1 to positive of battery 2. You would get 12 volts from running your wire positive and negative from the same battery. I don't know if it would be recommended since you would be putting an uneven draw on one of your batteries doing it that way
Sent from my SM-S215DL using Tapatalk