The batteries need to be the same chemistry. Mixing flooded with AGM, for example, will severely lessen the lifespan of both batteries and they won't charge correctly while they are connected.