What type of reaction is 3 and 4 ?

Answer:
3 is decomposition
4 is double replacement
Explanation:
In decomposition reactions, a compound (two or more elements) are broken down into singular elements.
Double replacement reactions have two different compounds, one element from a compound switches with another element in the other compound.
Explanation:
3.)
2NaN3(s) → 2Na(s) + 3N2(g)
= Decomposition Reaction
4.)
Ba(NO3)2 + K2SO4 → 2KNO3 + BaSO4
= Double Displacement Reaction