On burning fossil fuels, two gases are given out which dissolves in rain to form acid rain. Name the gases and the acids involved

Burning of fossil fuels like coal and petroleum releases oxides of nitrogen and sulphur.
On dissolving in rain, these oxides of nitrogen and sulphur form nitric acid and sulphuric acid and makes rainwater acidic.