Smog formation involves both ground-level ozone and nitrogen oxides (NOx) as key components. Photochemical smog forms when NOx and volatile organic compounds react in sunlight to produce ozone. Both pollutants are essential to smog formation, so 'both' is correct.