The 24 volt charger is connected to the negative on battery 1 and positive on battery 2 inputting 24 volts to the series battery bank.
Charging 24 volt battery system.
Cars trucks rvs and motorhomes run dual 12 volt batteries for various reasons.
Some 24v systems actually employ a series of linked 12v or 8v batteries.
If your boat has a 24 volt battery system it probably has two 12 volt batteries that are wired together so that the negative post of the first battery connects to the positive post of the second battery.
While most vehicles use a 12 volt 12v electrical system many buses and some boats utilize a 24 volt system.