You are connecting the both batteries to the below connection ports and the inverter to the above connection port.