if you can add water to both batteries it will work, but mixing agm and flooded probably will not work. you won't be able to equalize the flooded cells without losing water from the sealed ones.
oh and.. you might want to check that the acid concentration is the same for both. significant differences will result in the higher concentration ratio working harder. the lower will lose more water.