The type tells you what comes out
Name the type and the products follow. Combustion of a carbon fuel gives , every time, when the oxygen supply is plentiful. Double replacement swaps partners: each metal (or ) takes the OTHER non-metal partner, and then you REBUILD every formula from the charges, never from the old subscripts: with is , with is . Synthesis of a metal with a non-metal is the same charge arithmetic: and make , whatever the looked like on the left.
Single replacement happens only if the lone element is MORE active than the one it would displace. A short activity series, most active first: K > Na > Ca > Mg > Al > Zn > Fe > Pb > H > Cu > Ag > Au. Zinc pushes copper out of its sulfate; copper cannot push zinc out of anything, and metals below hydrogen never free hydrogen from an acid (why coins survive vinegar). For the halogens: F > Cl > Br > I. Last, the diatomic seven: whenever hydrogen, nitrogen, oxygen, fluorine, chlorine, bromine or iodine stands alone as an element, it is , , , , , , . A lone H in a product list is always wrong.