On heating ammonium dichromate and barium azide separately we get
1
N2 in both cases
2
N2 with ammonium dichromate and NO with barium azide
3
N2O with ammonium dichromate and N2 with barium azide
4
N2O with ammonium dichromate and NO2 with barium azide