I need help predicting the products and naming them using classes and subclasses.

a. Br2+BaI2
b. CdBr2+Na2S
c. H2+Br2
d. H3PO4+Ca(OH)2

(Numbers above are supposed to be in subscript form)

Reactions occur for the following reasons.

1. An insoluble substance (precipitate) is formed. For this you need to learn the solubility tables.
2. A gas is formed. For this you need to know the gases in the periodic table plus common gases in daily use.
3. A slightly ionized substance is formed (for example H2O).
4. A redox equation occurs. These, at least in elementary courses, can be predicted from the activity series.

a. #4
b. #1
c. #4
d. #3. Acids + bases produce salt + H2O