An aqueous solution of metal nitrate X react
s with sodium bromide solution to form yellowprecipitate of compound Y which is used in photography. Y on exposure to sunlight, undergoesdecomposition reaction to form metal present in Xalong with orangish brown gas. Identify X andY and write chemical equations for the reactionsinvolved.