Myth, batteries connected together must be idetical.
Fact: This is true if the batteries are wired in SERIES, like GC-2's. to get a higher voltage, In this case they need to be the same make, model, size, and age, Puttign two different six volt batteries in series will cause problems, Example a 215 and a 230 amp hour, or a Flooded wet cell and an AGM.
Batteries in PARALLEL however, only need to be the same chemistery and voltage.
So you can indeed put a group 24 (About 75 amp hour) in parrallel with an Group 31 (130 amp hour) they will share in this case the smaller battery doing about 35 percent of the work and sucking 35 percent of the charging current (I rounded a bit) (you will notice it has about 35% of the total amp hours (205) as well.
Batteries in parallel are socialists, Each according to his abilities, each according to his needs.
But this only applies to PARALLEL hookups.
Also truly big difference parings, IE: Group 24 with a 4D or pair of GC-2) might not be a good idea for other reaons,, If a cell or two short in the smaller battery, the bigger one can blow it up (Small explosion, major pain in the clean up as acid sprays all over).