The reaction which is used in black and white photograph is:
2AgBr(s) + sunlight → 2Ag(s) + Br2(g)
The above reaction is a type of decomposition reaction which is used in black and white photography.